Skip to content

Commit

Permalink
Fix typo in pass_manager.rs
Browse files Browse the repository at this point in the history
overriden -> overridden
  • Loading branch information
eltociear authored Sep 7, 2022
1 parent 0568b0a commit 9cef1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_mir_transform/src/pass_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn run_passes_inner<'tcx>(
let name = pass.name();

// Gather information about what we should be doing for this pass
let overriden =
let overridden =
overridden_passes.iter().rev().find(|(s, _)| s == &*name).map(|(_name, polarity)| {
trace!(
pass = %name,
Expand All @@ -112,7 +112,7 @@ fn run_passes_inner<'tcx>(
);
*polarity
});
let is_enabled = overriden.unwrap_or_else(|| pass.is_enabled(&tcx.sess));
let is_enabled = overridden.unwrap_or_else(|| pass.is_enabled(&tcx.sess));
let new_phase = pass.phase_change();
let dump_enabled = (is_enabled && pass.is_mir_dump_enabled()) || new_phase.is_some();
let validate = (validate && is_enabled)
Expand Down

0 comments on commit 9cef1ee

Please sign in to comment.