Skip to content

Commit

Permalink
Remove doc-comment default::Default imports
Browse files Browse the repository at this point in the history
In 8f5b5f9, `default::Default` was
added to the prelude, so these imports are no longer necessary.
  • Loading branch information
frewsxcv committed Apr 22, 2015
1 parent e9e9279 commit 6898991
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/liballoc/rc.rs
Expand Up @@ -459,7 +459,6 @@ impl<T: Default> Default for Rc<T> {
///
/// ```
/// use std::rc::Rc;
/// use std::default::Default;
///
/// let x: Rc<i32> = Default::default();
/// ```
Expand Down
9 changes: 0 additions & 9 deletions src/libcore/default.rs
Expand Up @@ -24,8 +24,6 @@
//! How can we define some default values? You can use `Default`:
//!
//! ```
//! use std::default::Default;
//!
//! #[derive(Default)]
//! struct SomeOptions {
//! foo: i32,
Expand All @@ -42,8 +40,6 @@
//! If you have your own type, you need to implement `Default` yourself:
//!
//! ```
//! use std::default::Default;
//!
//! enum Kind {
//! A,
//! B,
Expand All @@ -70,7 +66,6 @@
//! If you want to override a particular option, but still retain the other defaults:
//!
//! ```
//! # use std::default::Default;
//! # #[derive(Default)]
//! # struct SomeOptions {
//! # foo: i32,
Expand Down Expand Up @@ -109,8 +104,6 @@ pub trait Default {
/// Using built-in default values:
///
/// ```
/// use std::default::Default;
///
/// let i: i8 = Default::default();
/// let (x, y): (Option<String>, f64) = Default::default();
/// let (a, b, (c, d)): (i32, u32, (bool, bool)) = Default::default();
Expand All @@ -119,8 +112,6 @@ pub trait Default {
/// Making your own:
///
/// ```
/// use std::default::Default;
///
/// enum Kind {
/// A,
/// B,
Expand Down
2 changes: 0 additions & 2 deletions src/libstd/tuple.rs
Expand Up @@ -43,8 +43,6 @@
//! Using traits implemented for tuples:
//!
//! ```
//! use std::default::Default;
//!
//! let a = (1, 2);
//! let b = (3, 4);
//! assert!(a != b);
Expand Down

0 comments on commit 6898991

Please sign in to comment.