Skip to content

Commit f5150dd

Browse files
committed
Auto merge of #30171 - nikomatsakis:re-enable-mir, r=arielb1
Don't think there are any known regressions, but then I am still way behind on my GH notifications. cc @rust-lang/compiler thoughts?
2 parents a2f58f3 + ad1b998 commit f5150dd

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

src/librustc_driver/driver.rs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use rustc::lint;
1919
use rustc::middle::{stability, ty, reachable};
2020
use rustc::middle::dependency_format;
2121
use rustc::middle;
22-
use rustc::util::nodemap::NodeMap;
2322
use rustc::util::common::time;
2423
use rustc_borrowck as borrowck;
2524
use rustc_resolve as resolve;
@@ -49,7 +48,6 @@ use syntax::ast::{self, NodeIdAssigner};
4948
use syntax::attr;
5049
use syntax::attr::AttrMetaMethods;
5150
use syntax::diagnostics;
52-
use syntax::feature_gate::UnstableFeatures;
5351
use syntax::fold::Folder;
5452
use syntax::parse;
5553
use syntax::parse::token;
@@ -777,19 +775,10 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
777775
"match checking",
778776
|| middle::check_match::check_crate(tcx));
779777

780-
let mir_map = match tcx.sess.opts.unstable_features {
781-
UnstableFeatures::Disallow => {
782-
// use this as a shorthand for beta/stable, and skip
783-
// MIR construction there until known regressions are
784-
// addressed
785-
NodeMap()
786-
}
787-
UnstableFeatures::Allow | UnstableFeatures::Cheat => {
788-
time(time_passes,
789-
"MIR dump",
790-
|| mir::mir_map::build_mir_for_crate(tcx))
791-
}
792-
};
778+
let mir_map =
779+
time(time_passes,
780+
"MIR dump",
781+
|| mir::mir_map::build_mir_for_crate(tcx));
793782

794783
time(time_passes,
795784
"liveness checking",

0 commit comments

Comments
 (0)