Skip to content

Commit 3eabea9

Browse files
committed
Remove duplicated elaborate box derefs pass
The pass runs earlier as a part of `run_runtime_lowering_passes`.
1 parent 442f997 commit 3eabea9

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)