about summary refs log tree commit diff
path: root/src/librustc_allocator
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-03 12:55:00 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-11 15:08:16 +0100
commitd3c212c5527f901fcb44d59d031695248762c340 (patch)
tree517e224748ab0be13ec54bc99b5f728263152328 /src/librustc_allocator
parent57d7cfc3cf50f0c427ad3043ff09eaef20671320 (diff)
downloadrust-d3c212c5527f901fcb44d59d031695248762c340.tar.gz
rust-d3c212c5527f901fcb44d59d031695248762c340.zip
Require a list of features to allow in `allow_internal_unstable`
Diffstat (limited to 'src/librustc_allocator')
-rw-r--r--src/librustc_allocator/expand.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs
index d302e7646d1..b877c80af1a 100644
--- a/src/librustc_allocator/expand.rs
+++ b/src/librustc_allocator/expand.rs
@@ -91,7 +91,9 @@ impl MutVisitor for ExpandAllocatorDirectives<'_> {
             call_site: item.span, // use the call site of the static
             def_site: None,
             format: MacroAttribute(Symbol::intern(name)),
-            allow_internal_unstable: true,
+            allow_internal_unstable: vec![
+                Symbol::intern("rustc_attrs"),
+            ],
             allow_internal_unsafe: false,
             local_inner_macros: false,
             edition: hygiene::default_edition(),