Skip to content

Commit

Permalink
Rollup merge of #101525 - eltociear:patch-16, r=cjgillot
Browse files Browse the repository at this point in the history
Fix typo in pass_manager.rs

overriden -> overridden
  • Loading branch information
matthiaskrgr authored Sep 7, 2022
2 parents 8d21e97 + 9cef1ee commit acb3d11
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 acb3d11

Please sign in to comment.