Skip to content

Commit 2b4856e

Browse files
committed
Remove the deprecated Heap type/const
1 parent 99323da commit 2b4856e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/liballoc/alloc.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ extern "Rust" {
4040
#[derive(Copy, Clone, Default, Debug)]
4141
pub struct Global;
4242

43-
#[unstable(feature = "allocator_api", issue = "32838")]
44-
#[rustc_deprecated(since = "1.27.0", reason = "type renamed to `Global`")]
45-
pub type Heap = Global;
46-
47-
#[unstable(feature = "allocator_api", issue = "32838")]
48-
#[rustc_deprecated(since = "1.27.0", reason = "type renamed to `Global`")]
49-
#[allow(non_upper_case_globals)]
50-
pub const Heap: Global = Global;
51-
5243
#[unstable(feature = "allocator_api", issue = "32838")]
5344
#[inline]
5445
pub unsafe fn alloc(layout: Layout) -> *mut u8 {

src/libstd/alloc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
#![unstable(issue = "32838", feature = "allocator_api")]
1414

15-
#[doc(inline)] #[allow(deprecated)] pub use alloc_crate::alloc::Heap;
1615
#[doc(inline)] pub use alloc_crate::alloc::{Global, Layout, oom};
1716
#[doc(inline)] pub use alloc_crate::alloc::{alloc, alloc_zeroed, dealloc, realloc};
1817
#[doc(inline)] pub use alloc_system::System;

0 commit comments

Comments
 (0)