We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04318e commit fe1753aCopy full SHA for fe1753a
src/librustc_mir/transform/mod.rs
@@ -191,6 +191,11 @@ pub fn run_passes(
191
}
192
193
body.phase = mir_phase;
194
+
195
+ if mir_phase == MirPhase::Optimized {
196
+ validate::Validator { when: format!("end of phase {:?}", mir_phase) }
197
+ .run_pass(tcx, source, body);
198
+ }
199
200
201
fn mir_const_qualif(tcx: TyCtxt<'_>, def_id: DefId) -> ConstQualifs {
0 commit comments