about summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-06 16:33:44 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-09 00:38:46 -0700
commitda0703973af921626d7235131d14847b1aacffc2 (patch)
tree6b0a5c3e35c54c340553eb140019b8ab54a99df1 /src/libstd/rand
parent50942c7695783875bd2161596036a52755ffb09c (diff)
downloadrust-da0703973af921626d7235131d14847b1aacffc2.tar.gz
rust-da0703973af921626d7235131d14847b1aacffc2.zip
core: Move the collections traits to libcollections
This commit moves Mutable, Map, MutableMap, Set, and MutableSet from
`core::collections` to the `collections` crate at the top-level. Additionally,
this removes the `deque` module and moves the `Deque` trait to only being
available at the top-level of the collections crate.

All functionality continues to be reexported through `std::collections`.

[breaking-change]
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/os.rs2
-rw-r--r--src/libstd/rand/reader.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 284d41d3208..2654b7a1acc 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -62,7 +62,7 @@ mod imp {
 mod imp {
     extern crate libc;
 
-    use container::Container;
+    use core_collections::Collection;
     use io::{IoResult, IoError};
     use mem;
     use ops::Drop;
diff --git a/src/libstd/rand/reader.rs b/src/libstd/rand/reader.rs
index 170884073f3..8655d1e47d5 100644
--- a/src/libstd/rand/reader.rs
+++ b/src/libstd/rand/reader.rs
@@ -10,7 +10,7 @@
 
 //! A wrapper around any Reader to treat it as an RNG.
 
-use container::Container;
+use collections::Collection;
 use io::Reader;
 use rand::Rng;
 use result::{Ok, Err};