diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-05 20:26:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-05 20:26:54 +0200 |
| commit | 02245324932950eb2f96fa4e61c4a02b06770aee (patch) | |
| tree | 0f2471b94373342f963bd44111cb7fae4425e530 /src/libsyntax/ext/expand.rs | |
| parent | 40841e049a651f41e362f8dddbe509a159d318ba (diff) | |
| parent | e4e7eb2d5891ceb9241f769540dd413e90020971 (diff) | |
| download | rust-02245324932950eb2f96fa4e61c4a02b06770aee.tar.gz rust-02245324932950eb2f96fa4e61c4a02b06770aee.zip | |
Rollup merge of #62133 - petrochenkov:norustc, r=eddyb
Feature gate `rustc` attributes harder Fixes https://github.com/rust-lang/rust/issues/62116
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index c71fa61443c..6fbd2ab7c43 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1504,9 +1504,7 @@ impl<'feat> ExpansionConfig<'feat> { } fn enable_custom_inner_attributes(&self) -> bool { - self.features.map_or(false, |features| { - features.custom_inner_attributes || features.custom_attribute || features.rustc_attrs - }) + self.features.map_or(false, |features| features.custom_inner_attributes) } } |
