diff options
| author | bors <bors@rust-lang.org> | 2018-03-31 09:11:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-03-31 09:11:21 +0000 |
| commit | 8dd24c8ed4ac3e48068408fa21d491d7ffe45295 (patch) | |
| tree | 5ad91196b802bff59557df8ed2b24c3138b2e1fa /src/liballoc/lib.rs | |
| parent | 085c4b43b567298aa7af21a92426f49633919047 (diff) | |
| parent | 94d1970bba87f2d2893f6e934e4c3f02ed50604d (diff) | |
| download | rust-8dd24c8ed4ac3e48068408fa21d491d7ffe45295.tar.gz rust-8dd24c8ed4ac3e48068408fa21d491d7ffe45295.zip | |
Auto merge of #49481 - SimonSapin:core-heap, r=alexcrichton
Move the alloc::allocator module to core::heap This is the `Alloc` trait and its dependencies.
Diffstat (limited to 'src/liballoc/lib.rs')
| -rw-r--r-- | src/liballoc/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index e98b58994bf..e6a311041f5 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -81,6 +81,7 @@ #![cfg_attr(not(test), feature(exact_size_is_empty))] #![cfg_attr(not(test), feature(generator_trait))] #![cfg_attr(test, feature(rand, test))] +#![feature(allocator_api)] #![feature(allow_internal_unstable)] #![feature(ascii_ctype)] #![feature(box_into_raw_non_null)] @@ -146,9 +147,9 @@ extern crate std_unicode; #[macro_use] mod macros; -// Allocator trait and helper struct definitions - -pub mod allocator; +#[rustc_deprecated(since = "1.27.0", reason = "use the heap module in core, alloc, or std instead")] +#[unstable(feature = "allocator_api", issue = "32838")] +pub use core::heap as allocator; // Heaps provided for low-level allocation strategies |
