Skip to content

Commit abb1b2a

Browse files
committed
alloc: Convert statics to constants
1 parent 6d4cf37 commit abb1b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/heap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub fn stats_print() {
8585
///
8686
/// This preserves the non-null invariant for types like `Box<T>`. The address may overlap with
8787
/// non-zero-size memory allocations.
88-
pub static EMPTY: *mut () = 0x1 as *mut ();
88+
pub const EMPTY: *mut () = 0x1 as *mut ();
8989

9090
/// The allocator for unique pointers.
9191
#[cfg(not(test))]

0 commit comments

Comments
 (0)