Skip to content

Commit

Permalink
Remove deprecated unstable alloc::heap::EMPTY constant
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Mar 16, 2018
1 parent a7170b0 commit f0ad533
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/liballoc/heap.rs
Expand Up @@ -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))]
Expand Down

0 comments on commit f0ad533

Please sign in to comment.