Added comment on reason for method being public
This commit is contained in:
parent
15d408c6b0
commit
0166092f87
@ -431,6 +431,8 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> &
|
|||||||
tcx.alloc_steal_mir(body)
|
tcx.alloc_steal_mir(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Made public such that `mir_drops_elaborated_and_const_checked` can be overridden
|
||||||
|
// by custom rustc drivers, running all the steps by themselves.
|
||||||
pub fn run_analysis_to_runtime_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
pub fn run_analysis_to_runtime_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||||
assert!(body.phase == MirPhase::Analysis(AnalysisPhase::Initial));
|
assert!(body.phase == MirPhase::Analysis(AnalysisPhase::Initial));
|
||||||
let did = body.source.def_id();
|
let did = body.source.def_id();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user