diff options
| author | bors <bors@rust-lang.org> | 2016-04-16 18:31:11 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-16 18:31:11 -0700 |
| commit | 054a4b4019efe1f4a9800a5a322c4a0da5aef11c (patch) | |
| tree | 26146e62960b7b89bd8304ae62c22c8dc154c5e4 /src/libsyntax | |
| parent | ae33aa74f4e03b11a9a82e10dbf7369c3ae6bd04 (diff) | |
| parent | 01fb27f64814dbd2fef755af4fd6197b1fe74240 (diff) | |
| download | rust-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/libsyntax')
| -rw-r--r-- | src/libsyntax/errors/mod.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 |
4 files changed, 0 insertions, 7 deletions
diff --git a/src/libsyntax/errors/mod.rs b/src/libsyntax/errors/mod.rs index c8c12d5a883..acf65fe15b1 100644 --- a/src/libsyntax/errors/mod.rs +++ b/src/libsyntax/errors/mod.rs @@ -19,7 +19,6 @@ use errors::emitter::{Emitter, EmitterWriter}; use std::cell::{RefCell, Cell}; use std::{error, fmt}; -use std::io::prelude::*; use std::rc::Rc; use term; @@ -653,8 +652,6 @@ pub enum Level { impl fmt::Display for Level { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use std::fmt::Display; - self.to_str().fmt(f) } } diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index ea5d6739e6d..29b1d5b9aff 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -19,7 +19,6 @@ use ptr::P; use str::char_at; use std::cell::RefCell; -use std::io::Read; use std::iter; use std::path::{Path, PathBuf}; use std::rc::Rc; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 05cd53a8a8e..d0047e743c3 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -59,7 +59,6 @@ use ptr::P; use parse::PResult; use std::collections::HashSet; -use std::io::prelude::*; use std::mem; use std::path::{Path, PathBuf}; use std::rc::Rc; diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 6e9c161293d..8e20358027b 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -115,14 +115,12 @@ impl Ord for RcStr { impl fmt::Debug for RcStr { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use std::fmt::Debug; self[..].fmt(f) } } impl fmt::Display for RcStr { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use std::fmt::Display; self[..].fmt(f) } } |
