about summary refs log tree commit diff
path: root/src/liballoc/boxed.rs
diff options
context:
space:
mode:
authorAlexis Beingessner <a.beingessner@gmail.com>2017-05-04 14:48:58 -0400
committerAlexis Beingessner <a.beingessner@gmail.com>2017-05-04 23:54:54 -0400
commitc7cffc5f4ef1def337ca2a294c3ca855ee703419 (patch)
tree6d112c6462a626413c82467cd5de05af3ae41d05 /src/liballoc/boxed.rs
parent4ff583b1161c5c2e08c28a0740f34a526b39a8bc (diff)
downloadrust-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.rs2
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() {