about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 23:15:01 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 23:15:01 +1000
commit5a711ea7c317ea90f03d5118dbb2e19e1622bc29 (patch)
tree53bb665e8ba27551a5e8ae25b8295c6284721d17 /src/libsyntax
parentead4468249f57ca530cddf347f15c1f348c1c325 (diff)
downloadrust-5a711ea7c317ea90f03d5118dbb2e19e1622bc29.tar.gz
rust-5a711ea7c317ea90f03d5118dbb2e19e1622bc29.zip
clean-up unused import warnings
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/lexer.rs3
-rw-r--r--src/libsyntax/print/pprust.rs1
2 files changed, 1 insertions, 3 deletions
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> {