Skip to content

Commit 6afbfca

Browse files
Remove unnecessary FIXME (answered by Oli)
1 parent 772d51f commit 6afbfca

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-2
lines changed

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
480480
// FIXME(#70073): This pass is responsible for both optimization as well as some lints.
481481
&const_prop::ConstProp,
482482
//
483-
// FIXME: The old pass manager ran this only at mir-opt-level >= 1, but
484-
// const-prop runs unconditionally. Should this run unconditionally as well?
483+
// Const-prop runs unconditionally, but doesn't mutate the MIR at mir-opt-level=0.
485484
&o1(simplify_branches::SimplifyConstCondition::new("after-const-prop")),
486485
&early_otherwise_branch::EarlyOtherwiseBranch,
487486
&simplify_comparison_integral::SimplifyComparisonIntegral,

0 commit comments

Comments
 (0)