about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-22 14:41:25 +0000
committerbors <bors@rust-lang.org>2015-04-22 14:41:25 +0000
commit3dbfa74305e6cc347ffdd902a680bb3b9ee2470a (patch)
treec979382c80d340de99e8e1d283efeaca14fb2389 /src/libcore
parente9e9279d87d5786fcb8e12482f2920979602267b (diff)
parent68989918d20c237322dcdd9ac8f876e7540d69f4 (diff)
downloadrust-3dbfa74305e6cc347ffdd902a680bb3b9ee2470a.tar.gz
rust-3dbfa74305e6cc347ffdd902a680bb3b9ee2470a.zip
Auto merge of #24692 - frewsxcv:rm-default-imports, r=alexcrichton
In 8f5b5f94dcdb9884737dfbc8efd893d1d70f0b14, `default::Default` was
added to the prelude, so these imports are no longer necessary.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/default.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libcore/default.rs b/src/libcore/default.rs
index 910cf805f39..f5103d394ee 100644
--- a/src/libcore/default.rs
+++ b/src/libcore/default.rs
@@ -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,
@@ -42,8 +40,6 @@
 //! If you have your own type, you need to implement `Default` yourself:
 //!
 //! ```
-//! use std::default::Default;
-//!
 //! enum Kind {
 //!     A,
 //!     B,
@@ -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,
@@ -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();
@@ -119,8 +112,6 @@ pub trait Default {
     /// Making your own:
     ///
     /// ```
-    /// use std::default::Default;
-    ///
     /// enum Kind {
     ///     A,
     ///     B,