Allow reimplementation of drops_elaborated query
Make module inner and function run_analysis_to_runtime_passes in rustc_mir_transform public to allow re-implementing the query from the rust compiler interface.
This commit is contained in:
parent
617821ab32
commit
15d408c6b0
@ -75,7 +75,7 @@
|
|||||||
mod ffi_unwind_calls;
|
mod ffi_unwind_calls;
|
||||||
mod function_item_references;
|
mod function_item_references;
|
||||||
mod generator;
|
mod generator;
|
||||||
mod inline;
|
pub mod inline;
|
||||||
mod instsimplify;
|
mod instsimplify;
|
||||||
mod large_enums;
|
mod large_enums;
|
||||||
mod lower_intrinsics;
|
mod lower_intrinsics;
|
||||||
@ -431,7 +431,7 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> &
|
|||||||
tcx.alloc_steal_mir(body)
|
tcx.alloc_steal_mir(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user