Skip to content

Commit f764d80

Browse files
committed
---
yaml --- r: 107689 b: refs/heads/dist-snap c: b23fd08 h: refs/heads/master i: 107687: 77d76be v: v3
1 parent 8c095e8 commit f764d80

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: b0280ac5385433bd663e825e24f6990a816a5f40
9+
refs/heads/dist-snap: b23fd080ffbfb8edba3219c4df53f1b284e6904d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/front/feature_gate.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
4646
("phase", Active),
4747
("macro_registrar", Active),
4848
("log_syntax", Active),
49+
("trace_macros", Active),
4950

5051
// These are used to test this portion of the compiler, they don't actually
5152
// mean anything
@@ -193,6 +194,10 @@ impl Visitor<()> for Context {
193194
self.gate_feature("log_syntax", path.span, "`log_syntax!` is not \
194195
stable enough for use and is subject to change");
195196
}
197+
else if path.segments.last().unwrap().identifier == self.sess.ident_of("trace_macros") {
198+
self.gate_feature("trace_macros", path.span, "`trace_macros` is not \
199+
stable enough for use and is subject to change");
200+
}
196201
}
197202

198203
fn visit_ty(&mut self, t: &ast::Ty, _: ()) {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// xfail-fast feature doesn't work.
12+
13+
fn main() {
14+
trace_macros!(true); //~ ERROR: `trace_macros` is not stable
15+
}

branches/dist-snap/src/test/compile-fail/macros-nonfatal-errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// immediately, so that we get more errors listed at a time.
1313

1414
#[feature(asm)];
15+
#[feature(trace_macros)];
1516

1617
#[deriving(Default, //~ ERROR
1718
Rand, //~ ERROR

0 commit comments

Comments
 (0)