about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-06 16:32:00 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-09 09:44:51 -0700
commitabb1b2a309acfca78e89e6dac574f94a0ce4d916 (patch)
treeb3fb4ad5bcd69df63c2f75a7bbf0f2d6decc6a9f /src/liballoc
parent6d4cf378e6a58a2564a8be9f9eb32271a9c3687e (diff)
downloadrust-abb1b2a309acfca78e89e6dac574f94a0ce4d916.tar.gz
rust-abb1b2a309acfca78e89e6dac574f94a0ce4d916.zip
alloc: Convert statics to constants
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/heap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs
index 9a439074719..5a0f860ff84 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<T>`. 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))]