about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-16 18:31:11 -0700
committerbors <bors@rust-lang.org>2016-04-16 18:31:11 -0700
commit054a4b4019efe1f4a9800a5a322c4a0da5aef11c (patch)
tree26146e62960b7b89bd8304ae62c22c8dc154c5e4 /src/libcore
parentae33aa74f4e03b11a9a82e10dbf7369c3ae6bd04 (diff)
parent01fb27f64814dbd2fef755af4fd6197b1fe74240 (diff)
downloadrust-054a4b4019efe1f4a9800a5a322c4a0da5aef11c.tar.gz
rust-054a4b4019efe1f4a9800a5a322c4a0da5aef11c.zip
Auto merge of #32909 - sanxiyn:unused-trait-import-2, r=alexcrichton
Remove unused trait imports
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/fmt/builders.rs2
-rw-r--r--src/libcore/num/mod.rs2
-rw-r--r--src/libcore/option.rs1
-rw-r--r--src/libcore/slice.rs2
-rw-r--r--src/libcore/str/mod.rs2
5 files changed, 3 insertions, 6 deletions
diff --git a/src/libcore/fmt/builders.rs b/src/libcore/fmt/builders.rs
index d33746389a0..6cac80ab624 100644
--- a/src/libcore/fmt/builders.rs
+++ b/src/libcore/fmt/builders.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use prelude::v1::*;
-use fmt::{self, Write, FlagV1};
+use fmt::{self, FlagV1};
 
 struct PadAdapter<'a, 'b: 'a> {
     fmt: &'a mut fmt::Formatter<'b>,
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 9af8ef53851..f0bbe9672ab 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -14,7 +14,7 @@
 #![allow(missing_docs)]
 
 use char::CharExt;
-use cmp::{Eq, PartialOrd};
+use cmp::PartialOrd;
 use convert::From;
 use fmt;
 use intrinsics;
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index beed2075d04..045c1f9feaf 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -142,7 +142,6 @@
 use self::Option::*;
 
 use clone::Clone;
-use cmp::{Eq, Ord};
 use default::Default;
 use iter::ExactSizeIterator;
 use iter::{Iterator, DoubleEndedIterator, FromIterator, IntoIterator};
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index eb12ee28177..07f76aca14d 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -41,7 +41,7 @@ use default::Default;
 use fmt;
 use intrinsics::assume;
 use iter::*;
-use ops::{FnMut, self, Index};
+use ops::{FnMut, self};
 use ops::RangeFull;
 use option::Option;
 use option::Option::{None, Some};
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index f3c31d59fc4..2c34caf63b8 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -19,7 +19,6 @@ use self::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
 
 use char::{self, CharExt};
 use clone::Clone;
-use cmp::Eq;
 use convert::AsRef;
 use default::Default;
 use fmt;
@@ -1319,7 +1318,6 @@ Section: Trait implementations
 
 mod traits {
     use cmp::{Ord, Ordering, PartialEq, PartialOrd, Eq};
-    use iter::Iterator;
     use option::Option;
     use option::Option::Some;
     use ops;