about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/alloc.rs (renamed from src/libcore/heap.rs)0
-rw-r--r--src/libcore/lib.rs6
2 files changed, 5 insertions, 1 deletions
diff --git a/src/libcore/heap.rs b/src/libcore/alloc.rs
index 5c51bb2b51b..5c51bb2b51b 100644
--- a/src/libcore/heap.rs
+++ b/src/libcore/alloc.rs
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index 722a9de215c..56d4e65d3ac 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -185,7 +185,11 @@ pub mod unicode;
 
 /* Heap memory allocator trait */
 #[allow(missing_docs)]
-pub mod heap;
+pub mod alloc;
+
+#[unstable(feature = "allocator_api", issue = "32838")]
+#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
+pub use alloc as heap;
 
 // note: does not need to be public
 mod iter_private;