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.
1 parent d3c13a0 commit 999d19dCopy full SHA for 999d19d
compiler/rustc_mir_transform/src/lib.rs
@@ -411,6 +411,8 @@ fn inner_mir_for_ctfe(tcx: TyCtxt<'_>, def: ty::WithOptConstParam<LocalDefId>) -
411
}
412
413
414
+ pm::run_passes(tcx, &mut body, &[&ctfe_limit::CtfeLimit], None);
415
+
416
debug_assert!(!body.has_free_regions(), "Free regions in MIR for CTFE");
417
418
body
@@ -518,7 +520,6 @@ fn run_runtime_lowering_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
518
520
// CTFE support for aggregates.
519
521
&deaggregator::Deaggregator,
522
&Lint(const_prop_lint::ConstProp),
- &ctfe_limit::CtfeLimit,
523
];
524
pm::run_passes_no_validate(tcx, body, passes, Some(MirPhase::Runtime(RuntimePhase::Initial)));
525
0 commit comments