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 | f391c0793b443d30ef8c4d4228550439d4dbfead (patch) | |
| tree | a5da4c5407252088c561dc674881cffa5f833fae /compiler/rustc_codegen_gcc/example | |
| parent | 5a1e5449c8f4cb6b12b4f64238e3c058767ebf02 (diff) | |
| download | rust-f391c0793b443d30ef8c4d4228550439d4dbfead.tar.gz rust-f391c0793b443d30ef8c4d4228550439d4dbfead.zip | |
only set noalias on Box with the global allocator
Diffstat (limited to 'compiler/rustc_codegen_gcc/example')
| -rw-r--r-- | compiler/rustc_codegen_gcc/example/mini_core.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/example/mini_core.rs b/compiler/rustc_codegen_gcc/example/mini_core.rs index 230009741dc..cc3d647c8c8 100644 --- a/compiler/rustc_codegen_gcc/example/mini_core.rs +++ b/compiler/rustc_codegen_gcc/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 {} |
