add write_box_via_move intrinsic and use it for vec!
This allows us to get rid of box_new entirely
This commit is contained in:
parent
0eca6c0058
commit
db5ed68a88
1 changed files with 0 additions and 5 deletions
|
|
@ -622,11 +622,6 @@ impl<T: ?Sized> Deref for Box<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[lang = "exchange_malloc"]
|
||||
unsafe fn allocate(size: usize, _align: usize) -> *mut u8 {
|
||||
unsafe { libc::malloc(size) }
|
||||
}
|
||||
|
||||
#[lang = "drop"]
|
||||
pub trait Drop {
|
||||
fn drop(&mut self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue