]> git.lizzy.rs Git - rust.git/commitdiff
Remove deprecated unstable alloc::heap::EMPTY constant
authorSimon Sapin <simon.sapin@exyr.org>
Fri, 16 Mar 2018 10:44:55 +0000 (11:44 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Fri, 16 Mar 2018 10:45:16 +0000 (11:45 +0100)
src/liballoc/heap.rs

index 372d606e4572222c1423ce6de400ef72c026c329..c13ad39e5e1d598a8f9b40f15ff572a271417a4d 100644 (file)
@@ -228,14 +228,6 @@ unsafe fn shrink_in_place(&mut self,
     }
 }
 
-/// An arbitrary non-null address to represent zero-size allocations.
-///
-/// This preserves the non-null invariant for types like `Box<T>`. The address
-/// may overlap with non-zero-size memory allocations.
-#[rustc_deprecated(since = "1.19.0", reason = "Use Unique/NonNull::empty() instead")]
-#[unstable(feature = "heap_api", issue = "27700")]
-pub const EMPTY: *mut () = 1 as *mut ();
-
 /// The allocator for unique pointers.
 // This function must not unwind. If it does, MIR trans will fail.
 #[cfg(not(test))]