about summary refs log tree commit diff
path: root/src/liballoc/arc.rs
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-02 16:05:30 +0900
committerMike Hommey <mh@glandium.org>2018-04-02 16:06:19 +0900
commitb647583c2df155f4741fa2b3e1fa6e4fb1f5868f (patch)
tree327ff3a0824d5089fcf941a635e475b358958b65 /src/liballoc/arc.rs
parent06fa27d7c84a21af8449e06f3c50b243c4d5a7ad (diff)
downloadrust-b647583c2df155f4741fa2b3e1fa6e4fb1f5868f.tar.gz
rust-b647583c2df155f4741fa2b3e1fa6e4fb1f5868f.zip
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/arc.rs')
-rw-r--r--src/liballoc/arc.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 6a77bf64bae..ccf2e2768d1 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -21,6 +21,7 @@ use core::sync::atomic::Ordering::{Acquire, Relaxed, Release, SeqCst};
 use core::borrow;
 use core::fmt;
 use core::cmp::Ordering;
+use core::heap::{Alloc, Layout};
 use core::intrinsics::abort;
 use core::mem::{self, align_of_val, size_of_val, uninitialized};
 use core::ops::Deref;
@@ -31,7 +32,7 @@ use core::hash::{Hash, Hasher};
 use core::{isize, usize};
 use core::convert::From;
 
-use heap::{Heap, Alloc, Layout, box_free};
+use heap::{Heap, box_free};
 use boxed::Box;
 use string::String;
 use vec::Vec;