We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PromoteTemps
1 parent ac148ac commit a9db560Copy full SHA for a9db560
compiler/rustc_mir_transform/src/lib.rs
@@ -91,6 +91,11 @@ use rustc_const_eval::transform::promote_consts;
91
use rustc_const_eval::transform::validate;
92
use rustc_mir_dataflow::rustc_peek;
93
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
+
99
pub fn provide(providers: &mut Providers) {
100
check_unsafety::provide(providers);
101
check_packed_ref::provide(providers);
0 commit comments