Skip to content

Commit a9db560

Browse files
Update PromoteTemps
1 parent ac148ac commit a9db560

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ use rustc_const_eval::transform::promote_consts;
9191
use rustc_const_eval::transform::validate;
9292
use rustc_mir_dataflow::rustc_peek;
9393

94+
// TODO: All MIR passes should be defined in this module. Until then...
95+
impl MirPassC for promote_consts::PromoteTemps {
96+
const PHASE_CHANGE: Option<MirPhase> = Some(MirPhase::ConstPromotion);
97+
}
98+
9499
pub fn provide(providers: &mut Providers) {
95100
check_unsafety::provide(providers);
96101
check_packed_ref::provide(providers);

0 commit comments

Comments
 (0)