diff options
| author | Haitao Li <lihaitao@gmail.com> | 2011-11-11 00:41:42 +0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-10 19:19:40 -0800 |
| commit | 5a7249c935d52e79db2301a6cccfd28dff9bf38e (patch) | |
| tree | 843bb8cadfecccf970a3af56ea87259cc83de4a1 /src/comp/syntax | |
| parent | 9bc2f1800dcf97aff968478569c52204ec6d3998 (diff) | |
| download | rust-5a7249c935d52e79db2301a6cccfd28dff9bf38e.tar.gz rust-5a7249c935d52e79db2301a6cccfd28dff9bf38e.zip | |
Cleanup unused imports
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/ext/base.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/env.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/expand.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/fmt.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/ident_to_str.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/log_syntax.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/ext/simplext.rs | 7 | ||||
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/parse/lexer.rs | 3 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/parse/token.rs | 4 | ||||
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 3 | ||||
| -rw-r--r-- | src/comp/syntax/util/interner.rs | 2 |
13 files changed, 14 insertions, 20 deletions
diff --git a/src/comp/syntax/ext/base.rs b/src/comp/syntax/ext/base.rs index fb3b7caa3ca..0fc352ac8be 100644 --- a/src/comp/syntax/ext/base.rs +++ b/src/comp/syntax/ext/base.rs @@ -1,4 +1,4 @@ -import std::{str, vec, option}; +import std::{vec, option}; import std::map::hashmap; import driver::session::session; import codemap::span; diff --git a/src/comp/syntax/ext/env.rs b/src/comp/syntax/ext/env.rs index 68b2ea87148..f017f7e6574 100644 --- a/src/comp/syntax/ext/env.rs +++ b/src/comp/syntax/ext/env.rs @@ -4,7 +4,7 @@ * should all get sucked into either the compiler syntax extension plugin * interface. */ -import std::{vec, str, option, generic_os}; +import std::{vec, option, generic_os}; import base::*; export expand_syntax_ext; diff --git a/src/comp/syntax/ext/expand.rs b/src/comp/syntax/ext/expand.rs index 81a50d2f0b7..a602ab49309 100644 --- a/src/comp/syntax/ext/expand.rs +++ b/src/comp/syntax/ext/expand.rs @@ -3,7 +3,7 @@ import driver::session; import std::option::{none, some}; import std::map::hashmap; -import std::{vec, str}; +import std::{vec}; import syntax::ast::{crate, expr_, expr_mac, mac_invoc}; import syntax::fold::*; diff --git a/src/comp/syntax/ext/fmt.rs b/src/comp/syntax/ext/fmt.rs index 575d49e15a6..b49f958a4d6 100644 --- a/src/comp/syntax/ext/fmt.rs +++ b/src/comp/syntax/ext/fmt.rs @@ -6,7 +6,7 @@ * compiler syntax extension plugin interface. */ import std::{vec, str, option}; -import std::option::{none, some}; +import std::option::{some}; import std::extfmt::ct::*; import base::*; import codemap::span; diff --git a/src/comp/syntax/ext/ident_to_str.rs b/src/comp/syntax/ext/ident_to_str.rs index e6e4f4e794e..5a08399da49 100644 --- a/src/comp/syntax/ext/ident_to_str.rs +++ b/src/comp/syntax/ext/ident_to_str.rs @@ -1,4 +1,4 @@ -import std::{vec, str, option}; +import std::{vec, option}; import base::*; import syntax::ast; diff --git a/src/comp/syntax/ext/log_syntax.rs b/src/comp/syntax/ext/log_syntax.rs index 4cda6b82f5b..67b92913602 100644 --- a/src/comp/syntax/ext/log_syntax.rs +++ b/src/comp/syntax/ext/log_syntax.rs @@ -1,4 +1,4 @@ -import std::{str, option}; +import std::{option}; import base::*; import syntax::ast; diff --git a/src/comp/syntax/ext/simplext.rs b/src/comp/syntax/ext/simplext.rs index 3adcfbccf4e..6a2a87de52c 100644 --- a/src/comp/syntax/ext/simplext.rs +++ b/src/comp/syntax/ext/simplext.rs @@ -1,16 +1,15 @@ use std; import codemap::span; -import std::{vec, str, option}; +import std::{vec, option}; import std::map::{hashmap, new_str_hash}; import option::{some, none}; -import base::{syntax_extension, ext_ctxt, normal, - expr_to_str, expr_to_ident}; +import base::{ext_ctxt, normal}; import fold::*; import ast_util::respan; -import ast::{ident, path, ty, blk, blk_, expr, expr_, path_, expr_path, +import ast::{ident, path, ty, blk_, expr, path_, expr_path, expr_vec, expr_mac, mac_invoc, node_id}; export add_new_extension; diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index e4b60c4c21e..03c65d79e75 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -1,5 +1,5 @@ -import std::{str, option, result, io, fs}; +import std::{option, result, io, fs}; import std::option::{some, none}; import syntax::ast; import syntax::parse::token; diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 685b93941b9..df9683f6a93 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -1,6 +1,5 @@ -import std::{io, int, vec, str, map, option}; -import std::map::hashmap; +import std::{io, vec, str, option}; import std::option::{some, none}; import util::interner; import util::interner::intern; diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 214955b14a0..4fa5baa7af4 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -4,7 +4,6 @@ import std::option::{some, none}; import std::either::{left, right}; import std::map::{hashmap, new_str_hash}; import token::can_begin_expr; -import ex = ext::base; import codemap::span; import util::interner; import ast::{node_id, spanned}; diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index c89d99f0baf..ee02e24c7a8 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -1,10 +1,8 @@ import ast::ty_mach; import ast_util::ty_mach_to_str; -import std::map::new_str_hash; import util::interner; -import std::{int, uint, str, option}; -import option::{some, none}; +import std::{int, uint, str}; type str_num = uint; diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 4570b56cba9..d45c8a8a43a 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -2,11 +2,10 @@ import std::{vec, int, io, str, uint, option}; import parse::lexer; import syntax::codemap::codemap; -import syntax::visit; import ast; import ast_util; import option::{some, none}; -import pp::{printer, break_offset, word, huge_word, zero_word, +import pp::{break_offset, word, space, zerobreak, hardbreak, breaks, consistent, inconsistent, eof}; diff --git a/src/comp/syntax/util/interner.rs b/src/comp/syntax/util/interner.rs index dea86723af3..c814f168a4a 100644 --- a/src/comp/syntax/util/interner.rs +++ b/src/comp/syntax/util/interner.rs @@ -1,7 +1,7 @@ // An "interner" is a data structure that associates values with uint tags and // allows bidirectional lookup; i.e. given a value, one can easily find the // type, and vice versa. -import std::{vec, map, option}; +import std::{vec, map}; import std::map::{hashmap, hashfn, eqfn}; import std::option::{none, some}; |
