Always validate MIR after optimizing
This commit is contained in:
parent
e04318e0fa
commit
fe1753af84
1 changed files with 5 additions and 0 deletions
|
|
@ -191,6 +191,11 @@ pub fn run_passes(
|
|||
}
|
||||
|
||||
body.phase = mir_phase;
|
||||
|
||||
if mir_phase == MirPhase::Optimized {
|
||||
validate::Validator { when: format!("end of phase {:?}", mir_phase) }
|
||||
.run_pass(tcx, source, body);
|
||||
}
|
||||
}
|
||||
|
||||
fn mir_const_qualif(tcx: TyCtxt<'_>, def_id: DefId) -> ConstQualifs {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue