diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-12-02 13:35:27 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-12-02 15:11:01 -0500 |
| commit | ad1b998bb67a69898e020f9dfa46baa64b8a3d3d (patch) | |
| tree | af83096ac91f7a20d625a062cd8d995346d7a69c | |
| parent | 01bd93d3109227addb49284ceba0935a6acfff3c (diff) | |
| download | rust-ad1b998bb67a69898e020f9dfa46baa64b8a3d3d.tar.gz rust-ad1b998bb67a69898e020f9dfa46baa64b8a3d3d.zip | |
Now that MIR regressions are fixed, re-enable MIR for all users.
| -rw-r--r-- | src/librustc_driver/driver.rs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 1429a6a54a6..a8b2f382468 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -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; @@ -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; @@ -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", |
