diff options
| author | Mark-Simulacrum <mark.simulacrum@gmail.com> | 2016-12-15 18:00:19 -0700 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-20 20:02:52 -0700 |
| commit | dda6c8cf2f035d23ff3f67c5fc0e805bb18cd0a4 (patch) | |
| tree | 36067a7a5966694f77dc7549bbec56a4042a2bfc /src/liballoc | |
| parent | 14ae76d96b87d6b3e8cbe9264534e148ee88fb89 (diff) | |
| download | rust-dda6c8cf2f035d23ff3f67c5fc0e805bb18cd0a4.tar.gz rust-dda6c8cf2f035d23ff3f67c5fc0e805bb18cd0a4.zip | |
Inline base::malloc_raw_dyn.
Move comment about not unwinding into liballoc.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 12809171b74..a1e32636980 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -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] |
