Skip to content

Commit 99323da

Browse files
committed
Remove deprecated heap modules
The heap.rs file was already unused.
1 parent e1a427c commit 99323da

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
@@ -149,14 +149,6 @@ pub mod allocator {
149149

150150
pub mod alloc;
151151

152-
#[unstable(feature = "allocator_api", issue = "32838")]
153-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
154-
/// Use the `alloc` module instead.
155-
pub mod heap {
156-
pub use alloc::*;
157-
}
158-
159-
160152
// Primitive types using the heaps above
161153

162154
// 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
@@ -210,13 +210,6 @@ pub mod unicode;
210210
#[allow(missing_docs)]
211211
pub mod alloc;
212212

213-
#[unstable(feature = "allocator_api", issue = "32838")]
214-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
215-
/// Use the `alloc` module instead.
216-
pub mod heap {
217-
pub use alloc::*;
218-
}
219-
220213
// note: does not need to be public
221214
mod iter_private;
222215
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
@@ -478,13 +478,6 @@ pub mod process;
478478
pub mod sync;
479479
pub mod time;
480480

481-
#[unstable(feature = "allocator_api", issue = "32838")]
482-
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
483-
/// Use the `alloc` module instead.
484-
pub mod heap {
485-
pub use alloc::*;
486-
}
487-
488481
// Platform-abstraction modules
489482
#[macro_use]
490483
mod sys_common;

0 commit comments

Comments
 (0)