]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_driver/driver.rs
Nuke the entire ctfe from orbit, it's the only way to be sure
[rust.git] / src / librustc_driver / driver.rs
index 54457eacbf2e685e412665f6ca0035faadc09407..943de1211182c6e81a6de3da07d5f3c7bdd37ac9 100644 (file)
@@ -1088,6 +1088,13 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(trans: &TransCrate,
             stability::check_unused_or_stable_features(tcx)
         });
 
+
+        time(time_passes,
+             "MIR linting",
+             || for def_id in tcx.body_owners() {
+                 mir::const_eval::check::check(tcx, def_id)
+             });
+
         time(time_passes, "lint checking", || lint::check_crate(tcx));
 
         return Ok(f(tcx, analysis, rx, tcx.sess.compile_status()));