Skip to content

Commit e94fab6

Browse files
committed
Auto merge of #106404 - tmiasko:dedup-box-derefs, r=wesleywiser
Remove duplicated elaborate box derefs pass The pass runs earlier as a part of `run_runtime_lowering_passes`. The duplicate was added in #99102.
2 parents 1429899 + 3eabea9 commit e94fab6

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

compiler/rustc_mir_transform/src/lib.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,8 @@ fn run_runtime_lowering_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
524524

525525
/// Returns the sequence of passes that do the initial cleanup of runtime MIR.
526526
fn run_runtime_cleanup_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
527-
let passes: &[&dyn MirPass<'tcx>] = &[
528-
&elaborate_box_derefs::ElaborateBoxDerefs,
529-
&lower_intrinsics::LowerIntrinsics,
530-
&simplify::SimplifyCfg::new("elaborate-drops"),
531-
];
527+
let passes: &[&dyn MirPass<'tcx>] =
528+
&[&lower_intrinsics::LowerIntrinsics, &simplify::SimplifyCfg::new("elaborate-drops")];
532529

533530
pm::run_passes(tcx, body, passes, Some(MirPhase::Runtime(RuntimePhase::PostCleanup)));
534531
}

0 commit comments

Comments
 (0)