Skip to content

Commit

Permalink
Remove std::default::Default from the prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab authored and alexcrichton committed Feb 25, 2014
1 parent ac64db9 commit 3cc9531
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libcollections/hashmap.rs
Expand Up @@ -53,6 +53,7 @@
//! ```

use std::cmp::max;
use std::default::Default;
use std::fmt;
use std::hash::{Hash, Hasher, sip};
use std::iter::{FilterMap, Chain, Repeat, Zip};
Expand Down
1 change: 0 additions & 1 deletion src/libstd/prelude.rs
Expand Up @@ -43,7 +43,6 @@ pub use char::Char;
pub use clone::{Clone, DeepClone};
pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater, Equiv};
pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
pub use default::Default;
pub use from_str::FromStr;
pub use iter::{FromIterator, Extendable};
pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, CloneableIterator};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/rand/reseeding.rs
Expand Up @@ -144,6 +144,7 @@ impl Default for ReseedWithDefault {
mod test {
use prelude::*;
use super::*;
use default::Default;
use rand::{SeedableRng, Rng};

struct Counter {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/str.rs
Expand Up @@ -3072,6 +3072,7 @@ impl Default for ~str {
#[cfg(test)]
mod tests {
use iter::AdditiveIterator;
use default::Default;
use prelude::*;
use str::*;

Expand Down
1 change: 1 addition & 0 deletions src/libsyntax/opt_vec.rs
Expand Up @@ -16,6 +16,7 @@
*/

use std::vec;
use std::default::Default;

#[deriving(Clone, Encodable, Decodable, Hash)]
pub enum OptVec<T> {
Expand Down
1 change: 1 addition & 0 deletions src/libuuid/lib.rs
Expand Up @@ -66,6 +66,7 @@ extern crate serialize;

use std::cast::{transmute,transmute_copy};
use std::char::Char;
use std::default::Default;
use std::fmt;
use std::hash::{Hash, sip};
use std::num::FromStrRadix;
Expand Down

0 comments on commit 3cc9531

Please sign in to comment.