diff options
| author | kennytm <kennytm@gmail.com> | 2018-03-17 17:20:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-17 17:20:48 +0800 |
| commit | 7638c9fd84dbf502a3c2c9cb9ced969d1b724abb (patch) | |
| tree | 34e9c2901425ff51930c299db93c1766bb9d551e /src/liballoc | |
| parent | f24e35cabdc686f616b285ec7b01b53715a6a7bf (diff) | |
| parent | f0ad533fe316c4eb26ab6ebda879e60956633c0e (diff) | |
| download | rust-7638c9fd84dbf502a3c2c9cb9ced969d1b724abb.tar.gz rust-7638c9fd84dbf502a3c2c9cb9ced969d1b724abb.zip | |
Rollup merge of #49082 - SimonSapin:mu, r=alexcrichton
Remove deprecated unstable alloc::heap::EMPTY constant
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 372d606e457..c13ad39e5e1 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -228,14 +228,6 @@ unsafe impl Alloc for Heap { } } -/// 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))] |
