diff options
| author | bors <bors@rust-lang.org> | 2014-01-08 10:06:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-08 10:06:45 -0800 |
| commit | 430652c970db41f718936bb649516c401b02964b (patch) | |
| tree | a41d51a20c1b3c876a345039bcfdd86a5c9b8cc2 /src/libstd/vec.rs | |
| parent | f3a8baafbecdb6e41f001c8f218d4796a9ca8d40 (diff) | |
| parent | 0547fb9cad4053f3ec66e722b7a05df259d63038 (diff) | |
| download | rust-430652c970db41f718936bb649516c401b02964b.tar.gz rust-430652c970db41f718936bb649516c401b02964b.zip | |
auto merge of #11370 : alexcrichton/rust/issue-10465, r=pwalton
Turned out to be a 2-line fix, but the compiler fallout was huge.
Diffstat (limited to 'src/libstd/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 3cb7fcd9533..9964c6842ab 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -611,6 +611,7 @@ impl<'a, T> RandomAccessIterator<&'a [T]> for ChunkIter<'a, T> { pub mod traits { use super::*; + use container::Container; use clone::Clone; use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Equiv}; use iter::order; @@ -2520,7 +2521,7 @@ pub unsafe fn from_buf<T>(ptr: *T, elts: uint) -> ~[T] { pub mod raw { use cast; use ptr; - use vec::{with_capacity, MutableVector}; + use vec::{with_capacity, MutableVector, OwnedVector}; use unstable::raw::Slice; /** @@ -2599,8 +2600,9 @@ pub mod raw { /// Operations on `[u8]`. pub mod bytes { use container::Container; - use vec::MutableVector; + use vec::{MutableVector, OwnedVector, ImmutableVector}; use ptr; + use ptr::RawPtr; /// A trait for operations on mutable `[u8]`s. pub trait MutableByteVector { @@ -2968,10 +2970,10 @@ impl<A> Extendable<A> for ~[A] { #[cfg(test)] mod tests { + use prelude::*; use mem; use vec::*; use cmp::*; - use prelude::*; use rand::{Rng, task_rng}; fn square(n: uint) -> uint { n * n } @@ -4452,13 +4454,11 @@ mod tests { #[cfg(test)] mod bench { use extra::test::BenchHarness; - use iter::range; - use vec; - use vec::{VectorVector, MutableTotalOrdVector}; - use option::*; + use mem; + use prelude::*; use ptr; use rand::{weak_rng, Rng}; - use mem; + use vec; #[bench] fn iterator(bh: &mut BenchHarness) { |
