From aef1e10eba812b8144b0a4ac8d9b6e690c6e5ca7 Mon Sep 17 00:00:00 2001 From: Daniel Farina Date: Thu, 30 May 2013 03:16:33 -0700 Subject: Remove unnecessary 'use' forms Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe. --- src/libsyntax/ext/pipes/ast_builder.rs | 3 +-- src/libsyntax/parse/parser.rs | 1 - src/libsyntax/parse/token.rs | 4 +--- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 37d5e0206cb..08f1540918e 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -19,7 +19,6 @@ use ast::ident; use ast; use codemap::span; -use core::str; use core::vec; // Transitional reexports so qquote can find the paths it is looking for diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 27dfc2c0a46..208ed1c41c8 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -92,7 +92,6 @@ use parse::{new_sub_parser_from_file, next_node_id, ParseSess}; use opt_vec; use opt_vec::OptVec; -use core::char; use core::either::Either; use core::either; use core::hashmap::HashSet; diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index b1a385ada07..f50b9f8936a 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -19,11 +19,9 @@ use util::interner; use core::cast; use core::char; use core::cmp::Equiv; -use core::hashmap::HashSet; use core::local_data; use core::str; use core::to_bytes; -use core::vec; #[deriving(Encodable, Decodable, Eq)] pub enum binop { -- cgit 1.4.1-3-g733a5