Skip to content

Remove doc-comment default::Default imports #24692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/liballoc/rc.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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