Split phase change from MirPass
This commit is contained in:
@@ -41,10 +41,6 @@ pub struct PromoteTemps<'tcx> {
|
||||
}
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for PromoteTemps<'tcx> {
|
||||
fn phase_change(&self) -> Option<MirPhase> {
|
||||
Some(MirPhase::Analysis(AnalysisPhase::Initial))
|
||||
}
|
||||
|
||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||
// There's not really any point in promoting errorful MIR.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user