mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Remove std::default::Default from the prelude
This commit is contained in:
parent
ac64db94bf
commit
3cc95314c3
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -144,6 +144,7 @@ impl Default for ReseedWithDefault {
|
||||
mod test {
|
||||
use prelude::*;
|
||||
use super::*;
|
||||
use default::Default;
|
||||
use rand::{SeedableRng, Rng};
|
||||
|
||||
struct Counter {
|
||||
|
@ -3072,6 +3072,7 @@ impl Default for ~str {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use iter::AdditiveIterator;
|
||||
use default::Default;
|
||||
use prelude::*;
|
||||
use str::*;
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
use std::vec;
|
||||
use std::default::Default;
|
||||
|
||||
#[deriving(Clone, Encodable, Decodable, Hash)]
|
||||
pub enum OptVec<T> {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user