Skip to content

Commit 8a6cb26

Browse files
committed
PERF only: disable default MIR validation
1 parent 450abe8 commit 8a6cb26

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_mir/transform

1 file changed

+2
-2
lines changed

src/librustc_mir/transform/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ pub fn run_passes(
193193

194194
body.phase = mir_phase;
195195

196-
if mir_phase == MirPhase::Optimized {
196+
/*if mir_phase == MirPhase::Optimized {
197197
validate::Validator { when: format!("end of phase {:?}", mir_phase) }
198198
.run_pass(tcx, source, body);
199-
}
199+
}*/
200200
}
201201

202202
fn mir_const_qualif(tcx: TyCtxt<'_>, def_id: DefId) -> ConstQualifs {

0 commit comments

Comments
 (0)