From abb1b2a309acfca78e89e6dac574f94a0ce4d916 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 6 Oct 2014 16:32:00 -0700 Subject: [PATCH] alloc: Convert statics to constants --- src/liballoc/heap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 9a4390747198..5a0f860ff844 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -85,7 +85,7 @@ pub fn stats_print() { /// /// This preserves the non-null invariant for types like `Box`. The address may overlap with /// non-zero-size memory allocations. -pub static EMPTY: *mut () = 0x1 as *mut (); +pub const EMPTY: *mut () = 0x1 as *mut (); /// The allocator for unique pointers. #[cfg(not(test))]