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-07 14:19:06 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-11 15:08:17 +0100
commitb681433b9d40ce1d851d22bedb7ccb483bedda06 (patch)
tree58553f5e5d930db8c101e2b698fa43ed38a09ee0 /src/librustc_allocator
parent1dba7cb20224b5bb3a22641b2f4f2f73e5157dee (diff)
downloadrust-b681433b9d40ce1d851d22bedb7ccb483bedda06.tar.gz
rust-b681433b9d40ce1d851d22bedb7ccb483bedda06.zip
Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocs
Diffstat (limited to 'src/librustc_allocator')
-rw-r--r--src/librustc_allocator/expand.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs
index b877c80af1a..758a0d63886 100644
--- a/src/librustc_allocator/expand.rs
+++ b/src/librustc_allocator/expand.rs
@@ -91,9 +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: vec![
+            allow_internal_unstable: Some(vec![
                 Symbol::intern("rustc_attrs"),
-            ],
+            ].into()),
             allow_internal_unsafe: false,
             local_inner_macros: false,
             edition: hygiene::default_edition(),