Skip to content

Commit 0166092

Browse files
committed
Added comment on reason for method being public
1 parent 15d408c commit 0166092

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

compiler/rustc_mir_transform/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> &
431431
tcx.alloc_steal_mir(body)
432432
}
433433

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.
434436
pub fn run_analysis_to_runtime_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
435437
assert!(body.phase == MirPhase::Analysis(AnalysisPhase::Initial));
436438
let did = body.source.def_id();

0 commit comments

Comments
 (0)