diff options
| author | cedihegi <hegglinc@student.ethz.ch> | 2023-08-08 17:34:12 +0200 |
|---|---|---|
| committer | cedihegi <hegglinc@student.ethz.ch> | 2023-08-08 17:36:30 +0200 |
| commit | 0166092f87274e9a1bc2d860177ff730ad48efb1 (patch) | |
| tree | c244aae09be8d894cf60f6167f1a360dae110d44 | |
| parent | 15d408c6b04044a8a0ad2f1810259c5ce4e18f2d (diff) | |
| download | rust-0166092f87274e9a1bc2d860177ff730ad48efb1.tar.gz rust-0166092f87274e9a1bc2d860177ff730ad48efb1.zip | |
Added comment on reason for method being public
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index 32e8af53def..bf798adee19 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -431,6 +431,8 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> & 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>) { assert!(body.phase == MirPhase::Analysis(AnalysisPhase::Initial)); let did = body.source.def_id(); |
