From 5a711ea7c317ea90f03d5118dbb2e19e1622bc29 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Mon, 10 Jun 2013 23:15:01 +1000 Subject: [PATCH] clean-up unused import warnings --- src/libextra/arc.rs | 1 - src/libextra/rope.rs | 1 - src/librustc/middle/astencode.rs | 1 - src/librustc/middle/borrowck/mod.rs | 1 - src/librustc/middle/dataflow.rs | 1 - src/librustc/middle/freevars.rs | 1 - src/librustc/middle/trans/common.rs | 1 - src/libstd/str.rs | 1 - src/libsyntax/parse/lexer.rs | 3 +-- src/libsyntax/print/pprust.rs | 1 - 10 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs index a59f59deee3..1b6b656e398 100644 --- a/src/libextra/arc.rs +++ b/src/libextra/arc.rs @@ -46,7 +46,6 @@ use sync::{Mutex, mutex_with_condvars, RWlock, rwlock_with_condvars}; use core::cast; use core::unstable::sync::UnsafeAtomicRcBox; -use core::ptr; use core::task; use core::borrow; diff --git a/src/libextra/rope.rs b/src/libextra/rope.rs index 80d80fa0ade..24cbf1b3f4a 100644 --- a/src/libextra/rope.rs +++ b/src/libextra/rope.rs @@ -38,7 +38,6 @@ use core::prelude::*; use core::iterator::IteratorUtil; -use core::str; use core::uint; use core::vec; diff --git a/src/librustc/middle/astencode.rs b/src/librustc/middle/astencode.rs index 18946ee2d79..79f5b7984b6 100644 --- a/src/librustc/middle/astencode.rs +++ b/src/librustc/middle/astencode.rs @@ -26,7 +26,6 @@ use middle; use util::ppaux::ty_to_str; use core::at_vec; -use core::str; use core::uint; use extra::ebml::reader; use extra::ebml; diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index b0b9c9f7efb..da3c5e43606 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -25,7 +25,6 @@ use core::hashmap::{HashSet, HashMap}; use core::io; use core::ops::{BitOr, BitAnd}; use core::result::{Result}; -use core::str; use syntax::ast; use syntax::ast_map; use syntax::visit; diff --git a/src/librustc/middle/dataflow.rs b/src/librustc/middle/dataflow.rs index e2d88e3c768..c528bad0b07 100644 --- a/src/librustc/middle/dataflow.rs +++ b/src/librustc/middle/dataflow.rs @@ -21,7 +21,6 @@ use core::prelude::*; use core::iterator::IteratorUtil; use core::cast; use core::io; -use core::str; use core::uint; use core::vec; use syntax::ast; diff --git a/src/librustc/middle/freevars.rs b/src/librustc/middle/freevars.rs index abce35bebff..2907e53cd4c 100644 --- a/src/librustc/middle/freevars.rs +++ b/src/librustc/middle/freevars.rs @@ -17,7 +17,6 @@ use middle::resolve; use middle::ty; use core::hashmap::HashMap; -use core::vec; use syntax::codemap::span; use syntax::{ast, ast_util, visit}; diff --git a/src/librustc/middle/trans/common.rs b/src/librustc/middle/trans/common.rs index 03ae32cf0a6..a3491114bd3 100644 --- a/src/librustc/middle/trans/common.rs +++ b/src/librustc/middle/trans/common.rs @@ -44,7 +44,6 @@ use core::cast; use core::hash; use core::hashmap::{HashMap, HashSet}; use core::libc::{c_uint, c_longlong, c_ulonglong}; -use core::ptr; use core::str; use core::to_bytes; use core::vec::raw::to_ptr; diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 98ac71bc018..4766504813d 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -32,7 +32,6 @@ use option::{None, Option, Some}; use old_iter::{BaseIter, EqIter}; use ptr; use ptr::RawPtr; -use str; use to_str::ToStr; use uint; use vec; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 5f9bc4ca6f6..002a6caf85c 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -22,7 +22,6 @@ use parse::token::{str_to_ident}; use core::iterator::IteratorUtil; use core::char; use core::either; -use core::str; use core::u64; pub use ext::tt::transcribe::{TtReader, new_tt_reader}; @@ -548,7 +547,7 @@ fn ident_continue(c: char) -> bool { // EFFECT: advances the input past that token // EFFECT: updates the interner fn next_token_inner(rdr: @mut StringReader) -> token::Token { - let mut c = rdr.curr; + let c = rdr.curr; if ident_start(c) { let start = rdr.last_pos; while ident_continue(rdr.curr) { diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 10fd46ea4b6..2157fec835e 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -34,7 +34,6 @@ use core::io; use core::str; use core::u64; use core::uint; -use core::vec; // The @ps is stored here to prevent recursive type. pub enum ann_node<'self> {