about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2025-07-17 21:47:00 +0100
committerclubby789 <jamie@hill-daniel.co.uk>2025-08-20 17:08:46 +0100
commit8ea3b093819aabd92a605b42989341da0c97c0d6 (patch)
tree3316419d585c84e5ee1fd20df3fb904f9e69d4bd /compiler/rustc_feature
parent1c9952f4dd6e0947ee91f07130c03813a088a894 (diff)
downloadrust-8ea3b093819aabd92a605b42989341da0c97c0d6.tar.gz
rust-8ea3b093819aabd92a605b42989341da0c97c0d6.zip
Pass `alloc-variant-zeroed` to LLVM
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/builtin_attrs.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs
index ab6b8f92802..6cd0c43a3e0 100644
--- a/compiler/rustc_feature/src/builtin_attrs.rs
+++ b/compiler/rustc_feature/src/builtin_attrs.rs
@@ -993,6 +993,10 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
         rustc_allocator_zeroed, Normal, template!(Word), WarnFollowing,
         EncodeCrossCrate::No,
     ),
+    rustc_attr!(
+        rustc_allocator_zeroed_variant, Normal, template!(NameValueStr: "function"), ErrorPreceding,
+        EncodeCrossCrate::Yes,
+    ),
     gated!(
         default_lib_allocator, Normal, template!(Word), WarnFollowing,
         EncodeCrossCrate::No, allocator_internals, experimental!(default_lib_allocator),