Skip to content

Commit

Permalink
PERF only: disable default MIR validation
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 7, 2020
1 parent 450abe8 commit 8a6cb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ pub fn run_passes(

body.phase = mir_phase;

if mir_phase == MirPhase::Optimized {
/*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 {
Expand Down

0 comments on commit 8a6cb26

Please sign in to comment.