about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-05-30 20:46:59 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-06-11 13:47:27 -0700
commit8c30c5168694b8ee740dade3a0145eef8aba66c6 (patch)
treee097254988d37c738a9310b9590e1ac39615d383 /src/libstd
parent3373204ac49ebdb7194020ea9c556ce87910f7b7 (diff)
downloadrust-8c30c5168694b8ee740dade3a0145eef8aba66c6.tar.gz
rust-8c30c5168694b8ee740dade3a0145eef8aba66c6.zip
Remove deprecated heap modules
The heap.rs file was already unused.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/mod.rs2
-rw-r--r--src/libstd/error.rs2
-rw-r--r--src/libstd/lib.rs7
3 files changed, 2 insertions, 9 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs
index d8e79b97970..42113414183 100644
--- a/src/libstd/collections/mod.rs
+++ b/src/libstd/collections/mod.rs
@@ -438,7 +438,7 @@ pub use self::hash_map::HashMap;
 pub use self::hash_set::HashSet;
 
 #[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
-pub use heap::CollectionAllocErr;
+pub use alloc::CollectionAllocErr;
 
 mod hash;
 
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 817eea5eaf1..3160485375f 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -23,13 +23,13 @@
 // coherence challenge (e.g., specialization, neg impls, etc) we can
 // reconsider what crate these items belong in.
 
+use alloc::{AllocErr, LayoutErr, CannotReallocInPlace};
 use any::TypeId;
 use borrow::Cow;
 use cell;
 use char;
 use core::array;
 use fmt::{self, Debug, Display};
-use heap::{AllocErr, LayoutErr, CannotReallocInPlace};
 use mem::transmute;
 use num;
 use str;
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 4bf52224ae6..3972763a051 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -499,13 +499,6 @@ pub mod process;
 pub mod sync;
 pub mod time;
 
-#[unstable(feature = "allocator_api", issue = "32838")]
-#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
-/// Use the `alloc` module instead.
-pub mod heap {
-    pub use alloc::*;
-}
-
 // Platform-abstraction modules
 #[macro_use]
 mod sys_common;