Skip to content

Commit f0ad533

Browse files
committed
Remove deprecated unstable alloc::heap::EMPTY constant
1 parent a7170b0 commit f0ad533

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/liballoc/heap.rs

-8
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,6 @@ unsafe impl Alloc for Heap {
228228
}
229229
}
230230

231-
/// An arbitrary non-null address to represent zero-size allocations.
232-
///
233-
/// This preserves the non-null invariant for types like `Box<T>`. The address
234-
/// may overlap with non-zero-size memory allocations.
235-
#[rustc_deprecated(since = "1.19.0", reason = "Use Unique/NonNull::empty() instead")]
236-
#[unstable(feature = "heap_api", issue = "27700")]
237-
pub const EMPTY: *mut () = 1 as *mut ();
238-
239231
/// The allocator for unique pointers.
240232
// This function must not unwind. If it does, MIR trans will fail.
241233
#[cfg(not(test))]

0 commit comments

Comments
 (0)