Remove std::default::Default from the prelude

This commit is contained in:
Brendan Zabarauskas 2014-02-23 12:07:11 +11:00 committed by Alex Crichton
parent ac64db94bf
commit 3cc95314c3
6 changed files with 5 additions and 1 deletions

View File

@ -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};

View File

@ -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};

View File

@ -144,6 +144,7 @@ impl Default for ReseedWithDefault {
mod test {
use prelude::*;
use super::*;
use default::Default;
use rand::{SeedableRng, Rng};
struct Counter {

View File

@ -3072,6 +3072,7 @@ impl Default for ~str {
#[cfg(test)]
mod tests {
use iter::AdditiveIterator;
use default::Default;
use prelude::*;
use str::*;

View File

@ -16,6 +16,7 @@
*/
use std::vec;
use std::default::Default;
#[deriving(Clone, Encodable, Decodable, Hash)]
pub enum OptVec<T> {

View File

@ -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;