Skip to content

Commit db5ed68

Browse files
committed
add write_box_via_move intrinsic and use it for vec!
This allows us to get rid of box_new entirely
1 parent 0eca6c0 commit db5ed68

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

example/mini_core.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -622,11 +622,6 @@ impl<T: ?Sized> Deref for Box<T> {
622622
}
623623
}
624624

625-
#[lang = "exchange_malloc"]
626-
unsafe fn allocate(size: usize, _align: usize) -> *mut u8 {
627-
unsafe { libc::malloc(size) }
628-
}
629-
630625
#[lang = "drop"]
631626
pub trait Drop {
632627
fn drop(&mut self);

0 commit comments

Comments
 (0)