about summary refs log tree commit diff
path: root/src/liballoc/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/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/vec.rs')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 0f74743ca49..9ae415c328b 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -82,11 +82,11 @@ use core::ptr;
 use core::ptr::NonNull;
 use core::slice;
 
+use alloc::CollectionAllocErr;
 use borrow::ToOwned;
 use borrow::Cow;
 use boxed::Box;
 use raw_vec::RawVec;
-use super::allocator::CollectionAllocErr;
 
 /// A contiguous growable array type, written `Vec<T>` but pronounced 'vector'.
 ///