Skip to content

Commit

Permalink
Auto merge of #30171 - nikomatsakis:re-enable-mir, r=arielb1
Browse files Browse the repository at this point in the history
Don't think there are any known regressions, but then I am still way behind on my GH notifications. cc @rust-lang/compiler thoughts?
  • Loading branch information
bors committed Dec 3, 2015
2 parents a2f58f3 + ad1b998 commit f5150dd
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/librustc_driver/driver.rs
Expand Up @@ -19,7 +19,6 @@ use rustc::lint;
use rustc::middle::{stability, ty, reachable};
use rustc::middle::dependency_format;
use rustc::middle;
use rustc::util::nodemap::NodeMap;
use rustc::util::common::time;
use rustc_borrowck as borrowck;
use rustc_resolve as resolve;
Expand Down Expand Up @@ -49,7 +48,6 @@ use syntax::ast::{self, NodeIdAssigner};
use syntax::attr;
use syntax::attr::AttrMetaMethods;
use syntax::diagnostics;
use syntax::feature_gate::UnstableFeatures;
use syntax::fold::Folder;
use syntax::parse;
use syntax::parse::token;
Expand Down Expand Up @@ -777,19 +775,10 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
"match checking",
|| middle::check_match::check_crate(tcx));

let mir_map = match tcx.sess.opts.unstable_features {
UnstableFeatures::Disallow => {
// use this as a shorthand for beta/stable, and skip
// MIR construction there until known regressions are
// addressed
NodeMap()
}
UnstableFeatures::Allow | UnstableFeatures::Cheat => {
time(time_passes,
"MIR dump",
|| mir::mir_map::build_mir_for_crate(tcx))
}
};
let mir_map =
time(time_passes,
"MIR dump",
|| mir::mir_map::build_mir_for_crate(tcx));

time(time_passes,
"liveness checking",
Expand Down

0 comments on commit f5150dd

Please sign in to comment.