Inline base::malloc_raw_dyn.

Move comment about not unwinding into liballoc.
This commit is contained in:
Mark-Simulacrum
2016-12-15 18:00:19 -07:00
committed by Mark Simulacrum
parent 14ae76d96b
commit dda6c8cf2f
4 changed files with 15 additions and 31 deletions

View File

@@ -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]