Cleanup unused imports
This commit is contained in:
parent
9bc2f1800d
commit
5a7249c935
61 changed files with 104 additions and 204 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import std::{str, vec, option};
|
||||
import std::{vec, option};
|
||||
import std::map::hashmap;
|
||||
import driver::session::session;
|
||||
import codemap::span;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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::*;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import std::{vec, str, option};
|
||||
import std::{vec, option};
|
||||
import base::*;
|
||||
import syntax::ast;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import std::{str, option};
|
||||
import std::{option};
|
||||
import base::*;
|
||||
import syntax::ast;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue