about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-03-05 11:32:03 +0100
committerRalf Jung <post@ralfj.de>2024-03-05 15:03:33 +0100
commit0975461837bc9c4d065ac13ee56f7fbd0a737f38 (patch)
tree9fb8e8edc21f7bf90bf38111f17fc5d1d84a011b
parent1abbf610fee5529ed5d89150741b87def4a7bd9c (diff)
downloadrust-0975461837bc9c4d065ac13ee56f7fbd0a737f38.tar.gz
rust-0975461837bc9c4d065ac13ee56f7fbd0a737f38.zip
only set noalias on Box with the global allocator
-rw-r--r--example/mini_core.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index 230009741dc..cc3d647c8c8 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -472,6 +472,7 @@ pub trait Allocator {
 
 impl Allocator for () {}
 
+#[lang = "global_alloc_ty"]
 pub struct Global;
 
 impl Allocator for Global {}