diff options
| author | bors <bors@rust-lang.org> | 2018-04-02 08:07:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-02 08:07:10 +0000 |
| commit | 135f334e0a3177146f7417cee7ceaf405ffe732d (patch) | |
| tree | 8de13ba3e2ecf944a54f570ecb2dbfd61a0fa0aa /src/liballoc_jemalloc | |
| parent | 73f08719ea4cad8b8e9461bfb6d3b0ae088d2795 (diff) | |
| parent | b647583c2df155f4741fa2b3e1fa6e4fb1f5868f (diff) | |
| download | rust-135f334e0a3177146f7417cee7ceaf405ffe732d.tar.gz rust-135f334e0a3177146f7417cee7ceaf405ffe732d.zip | |
Auto merge of #49580 - glandium:core-heap, r=SimonSapin
Use Alloc and Layout from core::heap. 94d1970bba87f2d2893f6e934e4c3f02ed50604d moved the alloc::allocator module to core::heap, moving e.g. Alloc and Layout out of the alloc crate. While alloc::heap reexports them, it's better to use them from where they really come from.
Diffstat (limited to 'src/liballoc_jemalloc')
| -rw-r--r-- | src/liballoc_jemalloc/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs index d7370ae400d..7a8d01e4ef8 100644 --- a/src/liballoc_jemalloc/lib.rs +++ b/src/liballoc_jemalloc/lib.rs @@ -15,7 +15,6 @@ form or name", issue = "27783")] #![deny(warnings)] -#![feature(alloc)] #![feature(alloc_system)] #![feature(libc)] #![feature(linkage)] @@ -25,7 +24,6 @@ #![cfg_attr(not(dummy_jemalloc), feature(allocator_api))] #![rustc_alloc_kind = "exe"] -extern crate alloc; extern crate alloc_system; extern crate libc; @@ -35,7 +33,7 @@ pub use contents::*; mod contents { use core::ptr; - use alloc::heap::{Alloc, AllocErr, Layout}; + use core::heap::{Alloc, AllocErr, Layout}; use alloc_system::System; use libc::{c_int, c_void, size_t}; |
