From 0975461837bc9c4d065ac13ee56f7fbd0a737f38 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 5 Mar 2024 11:32:03 +0100 Subject: only set noalias on Box with the global allocator --- example/mini_core.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'example') 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 {} -- cgit 1.4.1-3-g733a5