about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/global_allocator.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-01 07:13:45 +0000
committerbors <bors@rust-lang.org>2022-12-01 07:13:45 +0000
commitd6c4de0fb22fe8f3cc5a27e94b6b6d88fb504a91 (patch)
treedaeb506f5cabec0a0b7f16f5a4a5e65fd723b7f4 /compiler/rustc_builtin_macros/src/global_allocator.rs
parent744a97b98c3f2722e1a43486c05203b04e499e21 (diff)
parentba1751a201190930a16ef20e6f7021c785d3891d (diff)
downloadrust-d6c4de0fb22fe8f3cc5a27e94b6b6d88fb504a91.tar.gz
rust-d6c4de0fb22fe8f3cc5a27e94b6b6d88fb504a91.zip
Auto merge of #104861 - nnethercote:attr-cleanups, r=petrochenkov
Attribute cleanups

Best reviewed one commit at a time.

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_builtin_macros/src/global_allocator.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/global_allocator.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/global_allocator.rs b/compiler/rustc_builtin_macros/src/global_allocator.rs
index 45b9b8ab6b6..0817aed037e 100644
--- a/compiler/rustc_builtin_macros/src/global_allocator.rs
+++ b/compiler/rustc_builtin_macros/src/global_allocator.rs
@@ -115,9 +115,7 @@ impl AllocFnFactory<'_, '_> {
     }
 
     fn attrs(&self) -> AttrVec {
-        let special = sym::rustc_std_internal_symbol;
-        let special = self.cx.meta_word(self.span, special);
-        thin_vec![self.cx.attribute(special)]
+        thin_vec![self.cx.attr_word(sym::rustc_std_internal_symbol, self.span)]
     }
 
     fn arg_ty(