Skip to content

Commit e061d04

Browse files
committed
---
yaml --- r: 277488 b: refs/heads/try c: 5eb775e h: refs/heads/master
1 parent 32a2640 commit e061d04

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 417a6df9b0764ff086d71fff9808a31715e9cd0d
4+
refs/heads/try: 5eb775eedd64d3b3abab63a8ef39ca9664f4cad0
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_driver/driver.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -647,19 +647,6 @@ pub fn phase_2_configure_and_expand(sess: &Session,
647647
krate
648648
})?;
649649

650-
// Needs to go *after* expansion to be able to check the results
651-
// of macro expansion.
652-
time(time_passes, "complete gated feature checking 1", || {
653-
sess.track_errors(|| {
654-
let features = syntax::feature_gate::check_crate(sess.codemap(),
655-
&sess.parse_sess.span_diagnostic,
656-
&krate,
657-
&attributes,
658-
sess.opts.unstable_features);
659-
*sess.features.borrow_mut() = features;
660-
})
661-
})?;
662-
663650
krate = time(time_passes, "maybe building test harness", || {
664651
syntax::test::modify_for_testing(&sess.parse_sess, &sess.opts.cfg, krate, sess.diagnostic())
665652
});
@@ -676,10 +663,8 @@ pub fn phase_2_configure_and_expand(sess: &Session,
676663
"checking for inline asm in case the target doesn't support it",
677664
|| no_asm::check_crate(sess, &krate));
678665

679-
// One final feature gating of the true AST that gets compiled
680-
// later, to make sure we've got everything (e.g. configuration
681-
// can insert new attributes via `cfg_attr`)
682-
time(time_passes, "complete gated feature checking 2", || {
666+
// Needs to go *after* expansion to be able to check the results of macro expansion.
667+
time(time_passes, "complete gated feature checking", || {
683668
sess.track_errors(|| {
684669
let features = syntax::feature_gate::check_crate(sess.codemap(),
685670
&sess.parse_sess.span_diagnostic,

0 commit comments

Comments
 (0)