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 15d408c commit 0166092Copy full SHA for 0166092
compiler/rustc_mir_transform/src/lib.rs
@@ -431,6 +431,8 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> &
431
tcx.alloc_steal_mir(body)
432
}
433
434
+// Made public such that `mir_drops_elaborated_and_const_checked` can be overridden
435
+// by custom rustc drivers, running all the steps by themselves.
436
pub fn run_analysis_to_runtime_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
437
assert!(body.phase == MirPhase::Analysis(AnalysisPhase::Initial));
438
let did = body.source.def_id();
0 commit comments