diff options
| author | bors <bors@rust-lang.org> | 2023-01-05 09:50:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-05 09:50:05 +0000 |
| commit | e94fab69d020d75517cb55fafacb2d270ad6e0ac (patch) | |
| tree | e1973e31f5cf7f4dd7fa54db09e7cd0abe18971c | |
| parent | 14298997005486529e7a97b2ab9e9e376d6fdc72 (diff) | |
| parent | 3eabea9e2c16803ff5864a78be8ecaf1531005d4 (diff) | |
| download | rust-e94fab69d020d75517cb55fafacb2d270ad6e0ac.tar.gz rust-e94fab69d020d75517cb55fafacb2d270ad6e0ac.zip | |
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.
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index ae79c2290f6..806758f71dc 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -524,11 +524,8 @@ fn run_runtime_lowering_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { /// Returns the sequence of passes that do the initial cleanup of runtime MIR. fn run_runtime_cleanup_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { - let passes: &[&dyn MirPass<'tcx>] = &[ - &elaborate_box_derefs::ElaborateBoxDerefs, - &lower_intrinsics::LowerIntrinsics, - &simplify::SimplifyCfg::new("elaborate-drops"), - ]; + let passes: &[&dyn MirPass<'tcx>] = + &[&lower_intrinsics::LowerIntrinsics, &simplify::SimplifyCfg::new("elaborate-drops")]; pm::run_passes(tcx, body, passes, Some(MirPhase::Runtime(RuntimePhase::PostCleanup))); } |
