We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4cf37 commit abb1b2aCopy full SHA for abb1b2a
src/liballoc/heap.rs
@@ -85,7 +85,7 @@ pub fn stats_print() {
85
///
86
/// This preserves the non-null invariant for types like `Box<T>`. The address may overlap with
87
/// non-zero-size memory allocations.
88
-pub static EMPTY: *mut () = 0x1 as *mut ();
+pub const EMPTY: *mut () = 0x1 as *mut ();
89
90
/// The allocator for unique pointers.
91
#[cfg(not(test))]
0 commit comments