Inline base::malloc_raw_dyn.
Move comment about not unwinding into liballoc.
This commit is contained in:
committed by
Mark Simulacrum
parent
14ae76d96b
commit
dda6c8cf2f
@@ -127,6 +127,7 @@ pub fn usable_size(size: usize, align: usize) -> usize {
|
||||
pub const EMPTY: *mut () = 0x1 as *mut ();
|
||||
|
||||
/// The allocator for unique pointers.
|
||||
// This function must not unwind. If it does, MIR trans will fail.
|
||||
#[cfg(not(test))]
|
||||
#[lang = "exchange_malloc"]
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user