From e00993a1abacc2bf211892af1e8012b55ad1ed9b Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Thu, 30 Aug 2018 04:56:55 +0300 Subject: Add test cases for possible restricted shadowing configurations Whitelist `#[rustc_transparent_macro]` so it's not interpreted as a potential attribute macro --- src/libsyntax/feature_gate.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index e3ea3563d85..cee6f3e261c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -966,6 +966,10 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG "the `#[rustc_test_marker]` attribute \ is used internally to track tests", cfg_fn!(rustc_attrs))), + ("rustc_transparent_macro", Whitelisted, Gated(Stability::Unstable, + "rustc_attrs", + "used internally for testing macro hygiene", + cfg_fn!(rustc_attrs))), // RFC #2094 ("nll", Whitelisted, Gated(Stability::Unstable, -- cgit 1.4.1-3-g733a5