Skip to content

Commit 7ad1900

Browse files
committed
Remove unused trait imports flagged by lint
1 parent 7d8100a commit 7ad1900

File tree

39 files changed

+13
-50
lines changed

39 files changed

+13
-50
lines changed

src/libcoretest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#![feature(box_syntax)]
1616
#![feature(cell_extras)]
1717
#![feature(const_fn)]
18-
#![feature(core_float)]
1918
#![feature(core_private_bignum)]
2019
#![feature(core_private_diy_float)]
2120
#![feature(dec2flt)]

src/libcoretest/num/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub fn test_num<T>(ten: T, two: T) where
5252
mod tests {
5353
use core::option::Option;
5454
use core::option::Option::{Some, None};
55-
use core::num::Float;
5655

5756
#[test]
5857
fn from_str_issue7588() {

src/librustc_const_eval/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use self::EvalHint::*;
1717

1818
use rustc::hir::map as ast_map;
1919
use rustc::hir::map::blocks::FnLikeNode;
20-
use rustc::middle::cstore::{self, CrateStore, InlinedItem};
20+
use rustc::middle::cstore::{self, InlinedItem};
2121
use rustc::{infer, traits};
2222
use rustc::hir::def::Def;
2323
use rustc::hir::def_id::DefId;

src/librustc_driver/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ use rustc_trans::back::link;
7070
use rustc::session::{self, config, Session, build_session, CompileResult};
7171
use rustc::session::config::{Input, PrintRequest, OutputType, ErrorOutputType};
7272
use rustc::session::config::{get_unstable_features_setting, nightly_options};
73-
use rustc::middle::cstore::CrateStore;
7473
use rustc::lint::Lint;
7574
use rustc::lint;
7675
use rustc_metadata::loader;

src/librustc_incremental/persist/data.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! The data that we will serialize and deserialize.
1212
1313
use rustc::dep_graph::DepNode;
14-
use rustc_serialize::{Decoder as RustcDecoder, Encoder as RustcEncoder};
1514

1615
use super::directory::DefPathIndex;
1716

src/librustc_incremental/persist/directory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use rustc::hir::map::DefPath;
1818
use rustc::hir::def_id::DefId;
1919
use rustc::ty;
2020
use rustc::util::nodemap::DefIdMap;
21-
use rustc_serialize::{Decoder as RustcDecoder, Encoder as RustcEncoder};
2221
use std::fmt::{self, Debug};
2322

2423
/// Index into the DefIdDirectory

src/librustc_lint/builtin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
//! a `pub fn new()`.
3030
3131
use rustc::hir::def::Def;
32-
use middle::cstore::CrateStore;
3332
use rustc::hir::def_id::DefId;
3433
use middle::stability;
3534
use rustc::{cfg, infer};

src/librustc_lint/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use std::{i8, i16, i32, i64, u8, u16, u32, u64, f32, f64};
2626

2727
use syntax::ast;
2828
use syntax::abi::Abi;
29-
use syntax::attr::{self, AttrMetaMethods};
29+
use syntax::attr;
3030
use syntax::codemap::{self, Span};
3131

3232
use rustc::hir;

src/librustc_metadata/csearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
536536
let mut visible_parent_map = self.visible_parent_map.borrow_mut();
537537
if !visible_parent_map.is_empty() { return visible_parent_map; }
538538

539-
use rustc::middle::cstore::{CrateStore, ChildItem};
539+
use rustc::middle::cstore::ChildItem;
540540
use std::collections::vec_deque::VecDeque;
541541
use std::collections::hash_map::Entry;
542542
for cnum in 1 .. self.next_crate_num() {

src/librustc_metadata/decoder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ use rustc::mir;
4343
use rustc::mir::visit::MutVisitor;
4444

4545
use std::cell::Cell;
46-
use std::io::prelude::*;
4746
use std::io;
4847
use std::rc::Rc;
4948
use std::str;

0 commit comments

Comments
 (0)