only set noalias on Box with the global allocator
This commit is contained in:
parent
1abbf610fe
commit
0975461837
@ -472,6 +472,7 @@ pub trait Allocator {
|
||||
|
||||
impl Allocator for () {}
|
||||
|
||||
#[lang = "global_alloc_ty"]
|
||||
pub struct Global;
|
||||
|
||||
impl Allocator for Global {}
|
||||
|
Loading…
Reference in New Issue
Block a user