diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-05 11:32:03 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-05 15:03:33 +0100 |
| commit | 0975461837bc9c4d065ac13ee56f7fbd0a737f38 (patch) | |
| tree | 9fb8e8edc21f7bf90bf38111f17fc5d1d84a011b | |
| parent | 1abbf610fee5529ed5d89150741b87def4a7bd9c (diff) | |
| download | rust-0975461837bc9c4d065ac13ee56f7fbd0a737f38.tar.gz rust-0975461837bc9c4d065ac13ee56f7fbd0a737f38.zip | |
only set noalias on Box with the global allocator
| -rw-r--r-- | example/mini_core.rs | 1 |
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 {} |
