diff options
| author | Mike Hommey <mh@glandium.org> | 2018-04-14 08:13:28 +0900 |
|---|---|---|
| committer | Mike Hommey <mh@glandium.org> | 2018-04-14 08:43:13 +0900 |
| commit | bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7 (patch) | |
| tree | f91a9ff37c528581e22c292b854ded5a7d1afafd /src/liballoc/boxed.rs | |
| parent | 9c2bfcbea2d7fff10e608b495d76f24f441999b9 (diff) | |
| download | rust-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/boxed.rs')
| -rw-r--r-- | src/liballoc/boxed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 71b53cc88e5..aceb6ff8abe 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -55,8 +55,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -use raw_vec::RawVec; - use core::any::Any; use core::borrow; use core::cmp::Ordering; @@ -68,6 +66,8 @@ use core::mem::{self, Pin}; use core::ops::{CoerceUnsized, Deref, DerefMut, Generator, GeneratorState}; use core::ptr::{self, NonNull, Unique}; use core::convert::From; + +use raw_vec::RawVec; use str::from_boxed_utf8_unchecked; /// A pointer type for heap allocation. |
