summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-25 15:55:39 +0000
committerbors <bors@rust-lang.org>2022-10-25 15:55:39 +0000
commitbed4ad65bf7a1cef39e3d66b3670189581b3b073 (patch)
tree02263f6f12f29311d0a167b5eda8c688c14683a8 /compiler/rustc_const_eval/src
parent85d089b41e2a0c0f07ab34f6c5a7c451389f25e6 (diff)
parentbe2401b8bfc824026b477f11b876b5611cb204c0 (diff)
downloadrust-bed4ad65bf7a1cef39e3d66b3670189581b3b073.tar.gz
rust-bed4ad65bf7a1cef39e3d66b3670189581b3b073.zip
Auto merge of #102340 - JakobDegen:pass-manager-simplification, r=oli-obk
Split phase change from `MirPass`

The main goal here is to simplify the pass manager logic. `MirPass` no longer contains the `phase_change` method, and `run_passes` instead accepts an `Option<PhaseChange>`. The hope is that this addresses the comments (and maybe perf regression) from #99102 .

r? `@oli-obk` cc `@RalfJung`
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/promote_consts.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/transform/promote_consts.rs b/compiler/rustc_const_eval/src/transform/promote_consts.rs
index 4b219300739..f3ae16da43b 100644
--- a/compiler/rustc_const_eval/src/transform/promote_consts.rs
+++ b/compiler/rustc_const_eval/src/transform/promote_consts.rs
@@ -41,10 +41,6 @@ pub struct PromoteTemps<'tcx> {
 }
 
 impl<'tcx> MirPass<'tcx> for PromoteTemps<'tcx> {
-    fn phase_change(&self) -> Option<MirPhase> {
-        Some(MirPhase::Analysis(AnalysisPhase::Initial))
-    }
-
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
         // There's not really any point in promoting errorful MIR.
         //