rustc_mir_transform::pass_manager

Function run_passes

Source
pub(crate) fn run_passes<'tcx>(
    tcx: TyCtxt<'tcx>,
    body: &mut Body<'tcx>,
    passes: &[&dyn MirPass<'tcx>],
    phase_change: Option<MirPhase>,
)
Expand description

The optional phase_change is applied after executing all the passes, if present