Skip to content

Commit 8c30c51

Browse files
committed
Remove deprecated heap modules
The heap.rs file was already unused.
1 parent 3373204 commit 8c30c51

File tree

6 files changed

+2
-134
lines changed

6 files changed

+2
-134
lines changed

src/liballoc/heap.rs

Lines changed: 0 additions & 110 deletions
This file was deleted.

src/liballoc/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,10 @@ pub mod allocator {
150150

151151
pub mod alloc;
152152

153-
#[unstable(feature = "allocator_api", issue = "32838")]
154-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
155-
/// Use the `alloc` module instead.
156-
pub mod heap {
157-
pub use alloc::*;
158-
}
159-
160153
#[unstable(feature = "futures_api",
161154
reason = "futures in libcore are unstable",
162155
issue = "50547")]
163156
pub mod task;
164-
165157
// Primitive types using the heaps above
166158

167159
// Need to conditionally define the mod from `boxed.rs` to avoid

src/libcore/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,6 @@ pub mod task;
215215
#[allow(missing_docs)]
216216
pub mod alloc;
217217

218-
#[unstable(feature = "allocator_api", issue = "32838")]
219-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
220-
/// Use the `alloc` module instead.
221-
pub mod heap {
222-
pub use alloc::*;
223-
}
224-
225218
// note: does not need to be public
226219
mod iter_private;
227220
mod nonzero;

src/libstd/collections/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ pub use self::hash_map::HashMap;
438438
pub use self::hash_set::HashSet;
439439

440440
#[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
441-
pub use heap::CollectionAllocErr;
441+
pub use alloc::CollectionAllocErr;
442442

443443
mod hash;
444444

src/libstd/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
// coherence challenge (e.g., specialization, neg impls, etc) we can
2424
// reconsider what crate these items belong in.
2525

26+
use alloc::{AllocErr, LayoutErr, CannotReallocInPlace};
2627
use any::TypeId;
2728
use borrow::Cow;
2829
use cell;
2930
use char;
3031
use core::array;
3132
use fmt::{self, Debug, Display};
32-
use heap::{AllocErr, LayoutErr, CannotReallocInPlace};
3333
use mem::transmute;
3434
use num;
3535
use str;

src/libstd/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,6 @@ pub mod process;
499499
pub mod sync;
500500
pub mod time;
501501

502-
#[unstable(feature = "allocator_api", issue = "32838")]
503-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
504-
/// Use the `alloc` module instead.
505-
pub mod heap {
506-
pub use alloc::*;
507-
}
508-
509502
// Platform-abstraction modules
510503
#[macro_use]
511504
mod sys_common;

0 commit comments

Comments
 (0)