diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2017-05-04 14:48:58 -0400 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2017-05-04 23:54:54 -0400 |
| commit | c7cffc5f4ef1def337ca2a294c3ca855ee703419 (patch) | |
| tree | 6d112c6462a626413c82467cd5de05af3ae41d05 /src/liballoc/boxed.rs | |
| parent | 4ff583b1161c5c2e08c28a0740f34a526b39a8bc (diff) | |
| download | rust-c7cffc5f4ef1def337ca2a294c3ca855ee703419.tar.gz rust-c7cffc5f4ef1def337ca2a294c3ca855ee703419.zip | |
Deprecate heap::EMPTY in favour of Unique::empty or otherwise.
Diffstat (limited to 'src/liballoc/boxed.rs')
| -rw-r--r-- | src/liballoc/boxed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index b03e3bb7a4b..fc6929f896e 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -156,7 +156,7 @@ fn make_place<T>() -> IntermediateBox<T> { let align = mem::align_of::<T>(); let p = if size == 0 { - heap::EMPTY as *mut u8 + mem::align_of::<T>() as *mut u8 } else { let p = unsafe { heap::allocate(size, align) }; if p.is_null() { |
