Skip to content

Commit 360f8e4

Browse files
committed
---
yaml --- r: 277879 b: refs/heads/auto c: 5eb775e h: refs/heads/master i: 277877: 971a5d0 277875: 2be125c 277871: 6c14d7d
1 parent ec25c36 commit 360f8e4

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
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 417a6df9b0764ff086d71fff9808a31715e9cd0d
11+
refs/heads/auto: 5eb775eedd64d3b3abab63a8ef39ca9664f4cad0
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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)