diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-03 14:41:15 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-12 22:52:47 +0200 |
| commit | 09e8db1e4f33ec82316e1eeaaedad94fe6e1acb5 (patch) | |
| tree | 0f69b9f8aa81b45c927d22d9db37f7ab7bc81050 /src/libstd | |
| parent | 1b895d8b88413f72230fbc0f00c67328870a2e9a (diff) | |
| download | rust-09e8db1e4f33ec82316e1eeaaedad94fe6e1acb5.tar.gz rust-09e8db1e4f33ec82316e1eeaaedad94fe6e1acb5.zip | |
Rename `heap` modules in the core, alloc, and std crates to `alloc`
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/alloc.rs (renamed from src/libstd/heap.rs) | 0 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/libstd/heap.rs b/src/libstd/alloc.rs index b42a1052c49..b42a1052c49 100644 --- a/src/libstd/heap.rs +++ b/src/libstd/alloc.rs diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index ef4205e7a62..3a99e845a16 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -477,7 +477,11 @@ pub mod path; pub mod process; pub mod sync; 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 #[macro_use] |
