File tree Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Expand file tree Collapse file tree 6 files changed +16
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 57
57
//!
58
58
//! ## Heap interfaces
59
59
//!
60
- //! The [`heap `](heap /index.html) module defines the low-level interface to the
60
+ //! The [`alloc `](alloc /index.html) module defines the low-level interface to the
61
61
//! default global allocator. It is not compatible with the libc allocator API.
62
62
63
63
#![ allow( unused_attributes) ]
@@ -145,7 +145,11 @@ pub use core::heap as allocator;
145
145
146
146
// Heaps provided for low-level allocation strategies
147
147
148
- pub mod heap;
148
+ pub mod alloc;
149
+
150
+ #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
151
+ #[ rustc_deprecated( since = "1.27.0" , reason = "module renamed to `alloc`" ) ]
152
+ pub use alloc as heap;
149
153
150
154
// Primitive types using the heaps above
151
155
File renamed without changes.
Original file line number Diff line number Diff line change @@ -185,7 +185,11 @@ pub mod unicode;
185
185
186
186
/* Heap memory allocator trait */
187
187
#[ allow( missing_docs) ]
188
- pub mod heap;
188
+ pub mod alloc;
189
+
190
+ #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
191
+ #[ rustc_deprecated( since = "1.27.0" , reason = "module renamed to `alloc`" ) ]
192
+ pub use alloc as heap;
189
193
190
194
// note: does not need to be public
191
195
mod iter_private;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -477,7 +477,11 @@ pub mod path;
477
477
pub mod process;
478
478
pub mod sync;
479
479
pub mod time;
480
- pub mod heap;
480
+ pub mod alloc;
481
+
482
+ #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
483
+ #[ rustc_deprecated( since = "1.27.0" , reason = "module renamed to `alloc`" ) ]
484
+ pub use alloc as heap;
481
485
482
486
// Platform-abstraction modules
483
487
#[ macro_use]
You can’t perform that action at this time.
0 commit comments