Skip to content

Commit 5a711ea

Browse files
committed
clean-up unused import warnings
1 parent ead4468 commit 5a711ea

File tree

10 files changed

+1
-11
lines changed

10 files changed

+1
-11
lines changed

src/libextra/arc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars};
4646

4747
use core::cast;
4848
use core::unstable::sync::UnsafeAtomicRcBox;
49-
use core::ptr;
5049
use core::task;
5150
use core::borrow;
5251

src/libextra/rope.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
use core::prelude::*;
3939

4040
use core::iterator::IteratorUtil;
41-
use core::str;
4241
use core::uint;
4342
use core::vec;
4443

src/librustc/middle/astencode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use middle;
2626
use util::ppaux::ty_to_str;
2727

2828
use core::at_vec;
29-
use core::str;
3029
use core::uint;
3130
use extra::ebml::reader;
3231
use extra::ebml;

src/librustc/middle/borrowck/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use core::hashmap::{HashSet, HashMap};
2525
use core::io;
2626
use core::ops::{BitOr, BitAnd};
2727
use core::result::{Result};
28-
use core::str;
2928
use syntax::ast;
3029
use syntax::ast_map;
3130
use syntax::visit;

src/librustc/middle/dataflow.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use core::prelude::*;
2121
use core::iterator::IteratorUtil;
2222
use core::cast;
2323
use core::io;
24-
use core::str;
2524
use core::uint;
2625
use core::vec;
2726
use syntax::ast;

src/librustc/middle/freevars.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use middle::resolve;
1717
use middle::ty;
1818

1919
use core::hashmap::HashMap;
20-
use core::vec;
2120
use syntax::codemap::span;
2221
use syntax::{ast, ast_util, visit};
2322

src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ use core::cast;
4444
use core::hash;
4545
use core::hashmap::{HashMap, HashSet};
4646
use core::libc::{c_uint, c_longlong, c_ulonglong};
47-
use core::ptr;
4847
use core::str;
4948
use core::to_bytes;
5049
use core::vec::raw::to_ptr;

src/libstd/str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ use option::{None, Option, Some};
3232
use old_iter::{BaseIter, EqIter};
3333
use ptr;
3434
use ptr::RawPtr;
35-
use str;
3635
use to_str::ToStr;
3736
use uint;
3837
use vec;

src/libsyntax/parse/lexer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use parse::token::{str_to_ident};
2222
use core::iterator::IteratorUtil;
2323
use core::char;
2424
use core::either;
25-
use core::str;
2625
use core::u64;
2726

2827
pub use ext::tt::transcribe::{TtReader, new_tt_reader};
@@ -548,7 +547,7 @@ fn ident_continue(c: char) -> bool {
548547
// EFFECT: advances the input past that token
549548
// EFFECT: updates the interner
550549
fn next_token_inner(rdr: @mut StringReader) -> token::Token {
551-
let mut c = rdr.curr;
550+
let c = rdr.curr;
552551
if ident_start(c) {
553552
let start = rdr.last_pos;
554553
while ident_continue(rdr.curr) {

src/libsyntax/print/pprust.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use core::io;
3434
use core::str;
3535
use core::u64;
3636
use core::uint;
37-
use core::vec;
3837

3938
// The @ps is stored here to prevent recursive type.
4039
pub enum ann_node<'self> {

0 commit comments

Comments
 (0)