Skip to content

Commit 0975461

Browse files
committed
only set noalias on Box with the global allocator
1 parent 1abbf61 commit 0975461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/mini_core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ pub trait Allocator {
472472

473473
impl Allocator for () {}
474474

475+
#[lang = "global_alloc_ty"]
475476
pub struct Global;
476477

477478
impl Allocator for Global {}

0 commit comments

Comments
 (0)