only set noalias on Box with the global allocator
This commit is contained in:
parent
5a1e5449c8
commit
f391c0793b
17 changed files with 75 additions and 28 deletions
|
@ -472,6 +472,7 @@ pub trait Allocator {
|
|||
|
||||
impl Allocator for () {}
|
||||
|
||||
#[lang = "global_alloc_ty"]
|
||||
pub struct Global;
|
||||
|
||||
impl Allocator for Global {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue