diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-01-27 23:41:25 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-01-29 08:44:25 +0100 |
| commit | 947f6ca4a1b8a3decc535963addb67864b988277 (patch) | |
| tree | 8825e17d8e27eec5b5730d545d2466a54346c1a2 /src/libsyntax | |
| parent | c5961ad06d45689b44ff305c15d6ec7ec65755a9 (diff) | |
| download | rust-947f6ca4a1b8a3decc535963addb67864b988277.tar.gz rust-947f6ca4a1b8a3decc535963addb67864b988277.zip | |
Feature gate macro_reexport. Fixes #20906
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 6e797844c18..059838ceb64 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -109,6 +109,9 @@ static KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[ // int and uint are now deprecated ("int_uint", "1.0.0", Active), + // macro reexport needs more discusion and stabilization + ("macro_reexport", Active), + // These are used to test this portion of the compiler, they don't actually // mean anything ("test_accepted_feature", "1.0.0", Accepted), @@ -272,6 +275,10 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { self.gate_feature("plugin", i.span, "compiler plugins are experimental \ and possibly buggy"); + } else if attr::contains_name(&i.attrs[], "macro_reexport") { + self.gate_feature("macro_reexport", i.span, + "macros reexports are experimental \ + and possibly buggy"); } } |
