Rename heap
modules in the core, alloc, and std crates to alloc
This commit is contained in:
parent
1b895d8b88
commit
09e8db1e4f
6 changed files with 16 additions and 4 deletions
|
@ -57,7 +57,7 @@
|
||||||
//!
|
//!
|
||||||
//! ## Heap interfaces
|
//! ## Heap interfaces
|
||||||
//!
|
//!
|
||||||
//! The [`heap`](heap/index.html) module defines the low-level interface to the
|
//! The [`alloc`](alloc/index.html) module defines the low-level interface to the
|
||||||
//! default global allocator. It is not compatible with the libc allocator API.
|
//! default global allocator. It is not compatible with the libc allocator API.
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
#![allow(unused_attributes)]
|
||||||
|
@ -145,7 +145,11 @@ pub use core::heap as allocator;
|
||||||
|
|
||||||
// Heaps provided for low-level allocation strategies
|
// Heaps provided for low-level allocation strategies
|
||||||
|
|
||||||
pub mod heap;
|
pub mod alloc;
|
||||||
|
|
||||||
|
#[unstable(feature = "allocator_api", issue = "32838")]
|
||||||
|
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
|
||||||
|
pub use alloc as heap;
|
||||||
|
|
||||||
// Primitive types using the heaps above
|
// Primitive types using the heaps above
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,11 @@ pub mod unicode;
|
||||||
|
|
||||||
/* Heap memory allocator trait */
|
/* Heap memory allocator trait */
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub mod heap;
|
pub mod alloc;
|
||||||
|
|
||||||
|
#[unstable(feature = "allocator_api", issue = "32838")]
|
||||||
|
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
|
||||||
|
pub use alloc as heap;
|
||||||
|
|
||||||
// note: does not need to be public
|
// note: does not need to be public
|
||||||
mod iter_private;
|
mod iter_private;
|
||||||
|
|
|
@ -477,7 +477,11 @@ pub mod path;
|
||||||
pub mod process;
|
pub mod process;
|
||||||
pub mod sync;
|
pub mod sync;
|
||||||
pub mod time;
|
pub mod time;
|
||||||
pub mod heap;
|
pub mod alloc;
|
||||||
|
|
||||||
|
#[unstable(feature = "allocator_api", issue = "32838")]
|
||||||
|
#[rustc_deprecated(since = "1.27.0", reason = "module renamed to `alloc`")]
|
||||||
|
pub use alloc as heap;
|
||||||
|
|
||||||
// Platform-abstraction modules
|
// Platform-abstraction modules
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue