about summary refs log tree commit diff
path: root/src/liballoc/raw_vec.rs
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-14 08:13:28 +0900
committerMike Hommey <mh@glandium.org>2018-04-14 08:43:13 +0900
commitbd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7 (patch)
treef91a9ff37c528581e22c292b854ded5a7d1afafd /src/liballoc/raw_vec.rs
parent9c2bfcbea2d7fff10e608b495d76f24f441999b9 (diff)
downloadrust-bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7.tar.gz
rust-bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7.zip
Cleanup liballoc use statements
Some modules were still using the deprecated `allocator` module, use the
`alloc` module instead.

Some modules were using `super` while it's not needed.

Some modules were more or less ordering them, and other not, so the
latter have been modified to match the others.
Diffstat (limited to 'src/liballoc/raw_vec.rs')
-rw-r--r--src/liballoc/raw_vec.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs
index 214cc7d7d0c..405814c021a 100644
--- a/src/liballoc/raw_vec.rs
+++ b/src/liballoc/raw_vec.rs
@@ -8,15 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use alloc::{Alloc, Layout, Global};
 use core::cmp;
 use core::mem;
 use core::ops::Drop;
 use core::ptr::{self, NonNull, Unique};
 use core::slice;
-use super::boxed::Box;
-use super::allocator::CollectionAllocErr;
-use super::allocator::CollectionAllocErr::*;
+
+use alloc::{Alloc, Layout, Global};
+use alloc::CollectionAllocErr;
+use alloc::CollectionAllocErr::*;
+use boxed::Box;
 
 /// A low-level utility for more ergonomically allocating, reallocating, and deallocating
 /// a buffer of memory on the heap without having to worry about all the corner cases