From 8a6cb266288c673dd2b0de075438a4d7974febc0 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 7 Jun 2020 10:05:33 +0200 Subject: [PATCH] PERF only: disable default MIR validation --- src/librustc_mir/transform/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/transform/mod.rs b/src/librustc_mir/transform/mod.rs index 26725a2ac02d5..ea54ebea016ac 100644 --- a/src/librustc_mir/transform/mod.rs +++ b/src/librustc_mir/transform/mod.rs @@ -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 {