about summary refs log tree commit diff
path: root/library/alloc/src
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 /library/alloc/src
parent1c9952f4dd6e0947ee91f07130c03813a088a894 (diff)
downloadrust-8ea3b093819aabd92a605b42989341da0c97c0d6.tar.gz
rust-8ea3b093819aabd92a605b42989341da0c97c0d6.zip
Pass `alloc-variant-zeroed` to LLVM
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/alloc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs
index c9b98fa4e5a..76630a746dd 100644
--- a/library/alloc/src/alloc.rs
+++ b/library/alloc/src/alloc.rs
@@ -17,6 +17,7 @@ unsafe extern "Rust" {
     #[rustc_allocator]
     #[rustc_nounwind]
     #[rustc_std_internal_symbol]
+    #[rustc_allocator_zeroed_variant = "__rust_alloc_zeroed"]
     fn __rust_alloc(size: usize, align: usize) -> *mut u8;
     #[rustc_deallocator]
     #[rustc_nounwind]