diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-08-30 04:56:55 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-09-08 14:15:11 +0300 |
| commit | e00993a1abacc2bf211892af1e8012b55ad1ed9b (patch) | |
| tree | d365288b790a213aee160612667480157bf1cc9a /src/libsyntax | |
| parent | d26ae20507b1ebdb51c48d4799edaa45c290bfe5 (diff) | |
| download | rust-e00993a1abacc2bf211892af1e8012b55ad1ed9b.tar.gz rust-e00993a1abacc2bf211892af1e8012b55ad1ed9b.zip | |
Add test cases for possible restricted shadowing configurations
Whitelist `#[rustc_transparent_macro]` so it's not interpreted as a potential attribute macro
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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, |
