]> git.lizzy.rs Git - rust.git/commitdiff
Cleanup unused imports
authorHaitao Li <lihaitao@gmail.com>
Thu, 10 Nov 2011 16:41:42 +0000 (00:41 +0800)
committerBrian Anderson <banderson@mozilla.com>
Fri, 11 Nov 2011 03:19:40 +0000 (19:19 -0800)
61 files changed:
src/comp/back/link.rs
src/comp/back/target_strs.rs
src/comp/back/upcall.rs
src/comp/back/x86.rs
src/comp/back/x86_64.rs
src/comp/driver/rustc.rs
src/comp/driver/session.rs
src/comp/front/attr.rs
src/comp/front/test.rs
src/comp/lib/llvm.rs
src/comp/metadata/creader.rs
src/comp/metadata/decoder.rs
src/comp/metadata/encoder.rs
src/comp/metadata/tydecode.rs
src/comp/metadata/tyencode.rs
src/comp/middle/alias.rs
src/comp/middle/ast_map.rs
src/comp/middle/check_const.rs
src/comp/middle/fn_usage.rs
src/comp/middle/freevars.rs
src/comp/middle/gc.rs
src/comp/middle/kind.rs
src/comp/middle/resolve.rs
src/comp/middle/shape.rs
src/comp/middle/trans.rs
src/comp/middle/trans_alt.rs
src/comp/middle/trans_build.rs
src/comp/middle/trans_common.rs
src/comp/middle/trans_objects.rs
src/comp/middle/trans_vec.rs
src/comp/middle/tstate/annotate.rs
src/comp/middle/tstate/auxiliary.rs
src/comp/middle/tstate/bitvectors.rs
src/comp/middle/tstate/ck.rs
src/comp/middle/tstate/collect_locals.rs
src/comp/middle/tstate/pre_post_conditions.rs
src/comp/middle/tstate/states.rs
src/comp/middle/ty.rs
src/comp/middle/typeck.rs
src/comp/syntax/ext/base.rs
src/comp/syntax/ext/env.rs
src/comp/syntax/ext/expand.rs
src/comp/syntax/ext/fmt.rs
src/comp/syntax/ext/ident_to_str.rs
src/comp/syntax/ext/log_syntax.rs
src/comp/syntax/ext/simplext.rs
src/comp/syntax/parse/eval.rs
src/comp/syntax/parse/lexer.rs
src/comp/syntax/parse/parser.rs
src/comp/syntax/parse/token.rs
src/comp/syntax/print/pprust.rs
src/comp/syntax/util/interner.rs
src/comp/util/common.rs
src/comp/util/filesearch.rs
src/comp/util/ppaux.rs
src/fuzzer/fuzzer.rs
src/lib/comm.rs
src/lib/either.rs
src/lib/generic_os.rs
src/lib/io.rs
src/lib/test.rs

index 05cd3ba6d36ef218f150da7699ad71ee44f6ebd5..b7e697686f5133c7ef05ba4bbd702584d7602643 100644 (file)
@@ -7,23 +7,18 @@
 import middle::trans_common::crate_ctxt;
 import std::str;
 import std::fs;
-import std::os;
 import std::vec;
 import std::option;
 import std::run;
 import option::some;
 import option::none;
 import std::sha1::sha1;
-import std::sort;
 import syntax::ast;
 import syntax::print::pprust;
 import lib::llvm::llvm::ModuleRef;
-import lib::llvm::llvm::ValueRef;
 import lib::llvm::mk_pass_manager;
 import lib::llvm::mk_target_data;
-import lib::llvm::mk_type_names;
 import lib::llvm::False;
-import lib::llvm::True;
 import util::filesearch;
 
 tag output_type {
index c3f70d83dfc3ac67444ff313161b84545f0f5e0a..50ae70c872b6d1e06a984d99eb8cacadeaecf466 100644 (file)
@@ -1,9 +1,7 @@
-import std::str;
-
 type t = {
     module_asm: str,
     meta_sect_name: str,
     data_layout: str,
     target_triple: str,
     gcc_args: [str]
-};
\ No newline at end of file
+};
index cda0dcd7f31a0623f6b3b23685c56dd4a3eb73ab..ca0b0ca1bff80e22b58a64e619a8d874c10a4b17 100644 (file)
@@ -1,11 +1,9 @@
 
-import std::str;
 import driver::session;
 import middle::trans;
-import trans::decl_cdecl_fn;
-import middle::trans_common::{T_f32, T_f64, T_fn, T_bool, T_i1, T_i8, T_i32,
-                              T_i64, T_int, T_vec, T_nil, T_opaque_chan_ptr,
-                              T_opaque_vec, T_opaque_port_ptr, T_ptr,
+import middle::trans_common::{T_fn, T_i1, T_i8, T_i32,
+                              T_i64, T_int, T_nil,
+                              T_opaque_vec, T_ptr,
                               T_size_t, T_void, T_float};
 import lib::llvm::type_names;
 import lib::llvm::llvm::ModuleRef;
index 0aff0604389f8838551f4600e3ed76fac72e2436..1674604828bf2909b3c49cf5edd347094df0323d 100644 (file)
@@ -1,6 +1,3 @@
-import lib::llvm::llvm;
-import lib::llvm::llvm::ModuleRef;
-import std::str;
 import driver::session;
 
 fn get_target_strs(target_os: session::os) -> target_strs::t {
index a668e3ee2f097c877b32dc54ecfab752be143840..14b423224c08e013d0e79707e7e1bd237d9d5a67 100644 (file)
@@ -1,6 +1,3 @@
-import lib::llvm::llvm;
-import lib::llvm::llvm::ModuleRef;
-import std::str;
 import driver::session;
 
 fn get_target_strs(target_os: session::os) -> target_strs::t {
index 0c12161661aae9ffe65e493a968f376e30fa47e3..f86e2f44682e0971a0c6e75243ab08083a896ceb 100644 (file)
@@ -2,20 +2,16 @@
 
 // -*- rust -*-
 import metadata::{creader, cstore};
-import syntax::parse::{parser, token};
+import syntax::parse::{parser};
 import syntax::{ast, codemap};
 import front::attr;
 import middle::{trans, resolve, freevars, kind, ty, typeck, fn_usage};
-import middle::tstate::ck;
 import syntax::print::{pp, pprust};
-import util::{ppaux, common, filesearch};
+import util::{ppaux, filesearch};
 import back::link;
-import lib::llvm;
-import std::{fs, option, str, vec, int, io, run, getopts, result};
-import std::map::mk_hashmap;
+import std::{option, str, vec, int, io, getopts, result};
 import std::option::{some, none};
 import std::getopts::{optopt, optmulti, optflag, optflagopt, opt_present};
-import back::link::output_type;
 import back::{x86, x86_64};
 
 tag pp_mode { ppm_normal; ppm_expanded; ppm_typed; ppm_identified; }
index e766b7eb030877e45b9472bf4aa4dde2d3f9e7b8..b8282c970d22376ea4c23d8a8325062838961fde 100644 (file)
@@ -3,7 +3,7 @@
 import syntax::ast::node_id;
 import codemap::span;
 import syntax::ast::ty_mach;
-import std::{uint, map, option, str};
+import std::{option};
 import std::option::{some, none};
 import syntax::parse::parser::parse_sess;
 import util::filesearch;
index 61b3032abd21cf39c782a584b6aa156058fef299..34b1e5c430b43bfbce8c00d6142f0373b7f45320 100644 (file)
@@ -1,8 +1,7 @@
 // Functions dealing with attributes and meta_items
 
-import std::{vec, str, map, option};
+import std::{vec, map, option};
 import syntax::{ast, ast_util};
-import util::common;
 import driver::session;
 
 export attr_meta;
index 4008725b6872a31d794ae798e9861b910972b37d..517b2169002763786aaa86a0c2c66b7c4eced385 100644 (file)
@@ -1,6 +1,6 @@
 // Code that generates a test runner to run all the tests in a crate
 
-import std::{option, vec, str};
+import std::{option, vec};
 import syntax::{ast, ast_util};
 import syntax::ast_util::*;
 //import syntax::ast_util::dummy_sp;
index acf27fb2a816772c9d2413ee9e5e76aaac55bb3a..f5b0fbeec8d8d55802272d0ade599df350ea08c0 100644 (file)
@@ -1,10 +1,8 @@
 import std::{vec, str, option};
 import std::str::sbuf;
 
-import llvm::{ModuleRef, ContextRef, TypeRef, TypeHandleRef, ValueRef,
-              BasicBlockRef, BuilderRef, ModuleProviderRef, MemoryBufferRef,
-              PassManagerRef, UseRef, TargetDataRef, Linkage, Attribute,
-              Visibility, CallConv, IntPredicate, RealPredicate, Opcode,
+import llvm::{TypeRef, MemoryBufferRef,
+              PassManagerRef, TargetDataRef,
               ObjectFileRef, SectionIteratorRef};
 
 type ULongLong = u64;
index 82dfb83935473a6589c7030cf832a05fe88bc0b1..95929b3449c88ef935baee83bb5a8e9eddcea73d 100644 (file)
@@ -4,11 +4,9 @@
 import syntax::{ast, ast_util};
 import lib::llvm::{False, llvm, mk_object_file, mk_section_iter};
 import front::attr;
-import middle::resolve;
 import syntax::visit;
 import syntax::codemap::span;
-import back::x86;
-import util::{common, filesearch};
+import util::{filesearch};
 import std::{vec, str, fs, io, option};
 import std::option::{none, some};
 import std::map::{hashmap, new_int_hash};
index 12ec6ed8860a45210d86af5229cafa888e3fb9a8..5c98bda66ed3ee8ec0c2a4dea505292bca2601a1 100644 (file)
@@ -1,13 +1,11 @@
 // Decoding metadata from a single crate's metadata
 
 import std::{ebml, vec, option, str, io};
-import std::map::hashmap;
 import syntax::{ast, ast_util};
 import front::attr;
 import middle::ty;
 import common::*;
 import tydecode::{parse_def_id, parse_ty_data};
-import driver::session;
 import syntax::print::pprust;
 import cstore;
 
index a62783f78dace4606f9b9c320c49800cdddf4c90..ec4e57ae56b51b2eae90860a48fa48b519b9fc8b 100644 (file)
@@ -1,7 +1,6 @@
 // Metadata encoding
 
-import std::{vec, str, uint, io, option, ebml, map};
-import std::option::{some, none};
+import std::{vec, str, uint, io, ebml, map};
 import syntax::ast::*;
 import syntax::ast_util;
 import syntax::ast_util::local_def;
index 156761eff4e1a49ad955063bdf7a96a42b7d968f..75e65607329cb6613138022011448579720ca49f 100644 (file)
@@ -1,6 +1,6 @@
 // Type decoding
 
-import std::{vec, str, uint, option};
+import std::{vec, str, uint};
 import std::option::{none, some};
 import syntax::ast;
 import syntax::ast::*;
index 15c0b4d9e29c41354a8dc3b5e45f977a85d729f8..92cf4d1b2fc0e906828f6cf66988f872a0d9d50e 100644 (file)
@@ -1,12 +1,11 @@
 // Type encoding
 
-import std::{str, io, int, uint};
+import std::{io, int, uint};
 import std::map::hashmap;
 import std::option::{some, none};
 import syntax::ast::*;
 import middle::ty;
 import syntax::print::pprust::*;
-import util::common;
 
 export ctxt;
 export ty_abbrev;
index 940ce38fa40b585ec771a4ab82884c7c9f8923dd..b02e6c8f6c22e147e4e2269d3ba8d65ec3acdd4c 100644 (file)
@@ -1,10 +1,10 @@
 
 import syntax::{ast, ast_util};
-import ast::{ident, fn_ident, node_id, def_id};
+import ast::{ident, fn_ident, node_id};
 import syntax::codemap::span;
 import syntax::visit;
 import visit::vt;
-import std::{vec, str, option};
+import std::{vec, option};
 import std::option::{some, none, is_none};
 
 // This is not an alias-analyser (though it would merit from becoming one, or
index 29d4c173cf394e8cac41512b09e1b6a6d7e9d3ab..1ed720322f35315ee334efbb68cbfa90062f8c30 100644 (file)
@@ -2,7 +2,6 @@
 import syntax::ast::*;
 import syntax::ast_util;
 import syntax::{visit, codemap};
-import visit::vt;
 
 tag ast_node {
     node_item(@item);
index 59bfdadf62f09c3d691d21a26dff96f64ca77c46..a3174204a6077d0d89826ec8d032539e56333466 100644 (file)
@@ -1,5 +1,4 @@
 import syntax::ast::*;
-import syntax::ast_util::{variant_def_ids, dummy_sp};
 import syntax::visit;
 
 fn check_crate(tcx: ty::ctxt, crate: @crate) {
index e7c3033ce1f20f6ecc95ecd363cd452d241d1caa..0b022ad35ad0526cb2a4418ac7811f4a2e51e165 100644 (file)
@@ -1,7 +1,7 @@
 import syntax::ast;
 import syntax::visit;
 import std::option::some;
-import syntax::print::pprust::{expr_to_str, path_to_str};
+import syntax::print::pprust::expr_to_str;
 
 export check_crate_fn_usage;
 
index 0128b3aad98202ce284e0c78d94d93f85f0f2db2..6bf2dd4555f04b0b23ab7433b4a6decf02bedbb6 100644 (file)
@@ -1,11 +1,10 @@
 // A pass that annotates for each loops and functions with the free
 // variables that they contain.
 
-import std::{map, option, int, str};
+import std::{int};
 import std::map::*;
 import std::option::*;
 import syntax::{ast, ast_util, visit};
-import driver::session;
 import middle::resolve;
 import syntax::codemap::span;
 
index 833864a8e7af680f848f241a61fa9ae6343ee824..8f77011b562d62b773f7ba4aa2773e2b2b2fb621 100644 (file)
@@ -1,13 +1,13 @@
 // Routines useful for garbage collection.
 
-import lib::llvm::{True, False};
+import lib::llvm::True;
 import lib::llvm::llvm::ValueRef;
 import middle::trans;
 import middle::trans::{get_tydesc, tps_normal};
 import middle::trans_common::*;
 import middle::ty;
-import std::option::{some, none};
-import std::{ptr, str, unsafe, vec};
+import std::option::none;
+import std::str;
 
 import lll = lib::llvm::llvm;
 import bld = trans_build;
index e76c95b6560cba6e49c0b071273be05eec9f5b1a..b71fdc024309e9bc95131c5d14c3e469c1dde9b2 100644 (file)
@@ -85,7 +85,7 @@
 */
 
 import syntax::{ast, ast_util, visit, codemap};
-import std::{vec, option, str};
+import std::{vec, option};
 import ast::{kind, kind_unique, kind_shared, kind_pinned};
 
 fn kind_lteq(a: kind, b: kind) -> bool {
index 501d675564ace84291f410c094b3ff5ef137b8ec..aa5d5ebaaa44f97db116f56a882b6dba626a30d2 100644 (file)
@@ -2,17 +2,16 @@
 import syntax::{ast, ast_util, codemap};
 import syntax::ast::*;
 import ast::{ident, fn_ident, def, def_id, node_id};
-import syntax::ast_util::{local_def, respan};
+import syntax::ast_util::local_def;
 
 import metadata::{csearch, cstore};
 import driver::session::session;
 import util::common::*;
 import std::map::{new_int_hash, new_str_hash};
 import syntax::codemap::span;
-import middle::ty::constr_table;
 import syntax::visit;
 import visit::vt;
-import std::{vec, int, list, option, str};
+import std::{vec, list, option, str};
 import std::map::hashmap;
 import std::list::{list, nil, cons};
 import std::option::{some, none, is_none};
index 7c54bde66b32f9457c4fc836fd213413b8452dee..42435d808f43dd8f3c33a320384dfb118dbc310b 100644 (file)
@@ -4,14 +4,12 @@
 import lib::llvm::True;
 import lib::llvm::llvm::{ModuleRef, TypeRef, ValueRef};
 import middle::{trans, trans_common};
-import middle::trans::llsize_of;
-import middle::trans_common::{crate_ctxt, val_ty, C_bytes, C_int,
-                              C_named_struct, C_struct, C_uint, T_i8, T_ptr};
+import middle::trans_common::{crate_ctxt, val_ty, C_bytes,
+                              C_named_struct, C_struct};
 import middle::ty;
-import middle::ty::{field, mt};
+import middle::ty::field;
 import syntax::ast;
 import syntax::ast_util::dummy_sp;
-import syntax::codemap::span;
 import syntax::util::interner;
 import util::common;
 
index b98f7d528b1cf9c769cd4312b661d1120d5b3767..8478061bc887dbfacd0d32444fdda777d0444995 100644 (file)
 //     pcwalton).  You can, instead, find out its TypeRef by calling val_ty,
 //     but many TypeRefs correspond to one ty::t; for instance, tup(int, int,
 //     int) and rec(x=int, y=int, z=int) will have the same TypeRef.
-import std::{int, str, uint, map, option, fs, time, vec};
+import std::{str, uint, map, option, time, vec};
 import std::map::hashmap;
 import std::map::{new_int_hash, new_str_hash};
 import std::option::{some, none};
 import driver::session;
 import middle::{ty, gc};
 import middle::freevars::*;
-import back::{link, x86, abi, upcall};
+import back::{link, abi, upcall};
 import syntax::{ast, ast_util};
 import syntax::visit;
 import syntax::codemap::span;
-import syntax::print::pprust::{expr_to_str, path_to_str};
+import syntax::print::pprust::{expr_to_str};
 import visit::vt;
-import util::common;
 import util::common::*;
-import lib::llvm::{llvm, target_data, type_names,
-                   mk_target_data, mk_type_names};
-import lib::llvm::llvm::{ModuleRef, ValueRef, TypeRef, TypeHandleRef,
-                         BuilderRef, BasicBlockRef};
-import lib::llvm::{Bool, True, False};
+import lib::llvm::{llvm, mk_target_data, mk_type_names};
+import lib::llvm::llvm::{ModuleRef, ValueRef, TypeRef, BasicBlockRef};
+import lib::llvm::{True, False};
 import link::{mangle_internal_name_by_type_only,
               mangle_internal_name_by_seq,
               mangle_internal_name_by_path,
               mangle_internal_name_by_path_and_seq,
               mangle_exported_name};
-import metadata::{creader, csearch, cstore};
+import metadata::{csearch, cstore};
 import util::ppaux::{ty_to_str, ty_to_short_str};
 
 import trans_common::*;
index 9990e9dbfef2c4ab05329cc84d8edc5a201073c8..319d6d00d83229b02e440174eb389755e70c3ea1 100644 (file)
@@ -1,12 +1,10 @@
-import std::{str, vec, option, int};
+import std::{str, vec, option};
 import option::{some, none};
-import std::map::hashmap;
 
 import lib::llvm::llvm;
-import lib::llvm::llvm::{ValueRef, TypeRef, BasicBlockRef};
+import lib::llvm::llvm::{ValueRef, BasicBlockRef};
 import trans_build::*;
 import trans::{new_sub_block_ctxt, new_scope_block_ctxt, load_if_immediate};
-import ty::pat_ty;
 import syntax::ast;
 import syntax::ast_util;
 import syntax::ast_util::dummy_sp;
index fbc96d5c21db4311d4327a01662087dbb8e6d33c..e888b00fa3a714a0b479b17f3ae89b3e8b2b4237 100644 (file)
@@ -3,8 +3,8 @@
 import lib::llvm::llvm;
 import llvm::{ValueRef, TypeRef, BasicBlockRef, BuilderRef, Opcode,
               ModuleRef};
-import trans_common::{block_ctxt, T_ptr, T_nil, T_int, T_i8, T_i1,
-                      val_ty, val_str, bcx_ccx, C_i32};
+import trans_common::{block_ctxt, T_ptr, T_nil, T_i8, T_i1,
+                      val_ty, C_i32};
 
 fn B(cx: @block_ctxt) -> BuilderRef {
     let b = *cx.fcx.lcx.ccx.builder;
index 8580f53a6243cb9fbe2ce76e1f58b13c5cef9417..f89d1dd930d407f274e247502b624f091cc988e6 100644 (file)
@@ -3,34 +3,20 @@
 
 */
 
-import std::{int, vec, str, uint, map, option, fs, unsafe};
+import std::{int, vec, str, uint, option, unsafe};
 import std::vec::to_ptr;
 import std::map::hashmap;
-import std::option::{some, none};
+import std::option::some;
 import syntax::ast;
 import driver::session;
 import middle::ty;
-import back::{link, x86, abi, upcall};
-import syntax::visit;
-import visit::vt;
-import util::common;
+import back::{link, abi, upcall};
 import util::common::*;
-import std::map::{new_int_hash, new_str_hash};
 import syntax::codemap::span;
-import lib::llvm::{llvm, target_data, type_names,
-                   mk_target_data, mk_type_names};
-import lib::llvm::llvm::{ModuleRef, ValueRef, TypeRef, TypeHandleRef,
-                         BuilderRef, BasicBlockRef};
+import lib::llvm::{llvm, target_data, type_names};
+import lib::llvm::llvm::{ModuleRef, ValueRef, TypeRef, BasicBlockRef};
 import lib::llvm::{True, False, Bool};
-import link::{mangle_internal_name_by_type_only,
-              mangle_internal_name_by_seq,
-              mangle_internal_name_by_path,
-              mangle_internal_name_by_path_and_seq,
-              mangle_exported_name};
-import metadata::{creader, csearch, cstore};
-import util::ppaux::{ty_to_str, ty_to_short_str};
-import syntax::print::pprust::{expr_to_str, path_to_str};
-import bld = trans_build;
+import metadata::{csearch};
 
 // FIXME: These should probably be pulled in here too.
 import trans::{type_of_fn, drop_ty};
index 73fed9205acc60a60ec4882accd63c27128042d1..399af0a61da8e7a2642ed86c53d6abbeb068dc05 100644 (file)
@@ -3,7 +3,7 @@
 import std::{str, option, vec};
 import option::{none, some};
 
-import lib::llvm::{llvm, Bool, True};
+import lib::llvm::{llvm, True};
 import lib::llvm::llvm::{TypeRef, ValueRef};
 
 import back::abi;
index b63aee9ae1dba66f635ec01c6452ae92be8839fb..607e0567f4054a12d048a8415e3c4b67bc1baec6 100644 (file)
@@ -4,11 +4,10 @@
 import lib::llvm::llvm::{ValueRef, TypeRef};
 import back::abi;
 import trans::{call_memmove, trans_shared_malloc, llsize_of, type_of_or_i8,
-               INIT, copy_val, load_if_immediate, alloca, size_of,
-               llderivedtydescs_block_ctxt, lazily_emit_tydesc_glue,
-               get_tydesc, load_inbounds,
+               INIT, copy_val, load_if_immediate, size_of,
+               get_tydesc,
                node_id_type, new_sub_block_ctxt, tps_normal, do_spill_noroot,
-               alloc_ty, dest};
+               dest};
 import trans_build::*;
 import trans_common::*;
 
index cb97511c578d2e0578348ed9aa0eb72d89418563..7eb317fdde14dab552c9a408363d0ce9c96e9705 100644 (file)
@@ -1,15 +1,11 @@
 
-import std::{int, uint, str, option};
-import std::option::{some, none};
+import std::{int, uint};
 import syntax::ast::*;
 import syntax::ast_util::pat_binding_ids;
 import syntax::visit;
 import syntax::codemap::span;
-import std::map::new_str_hash;
-import util::common::{log_expr_err, log_block_err, log_item_err,
-                      log_stmt_err, log_expr, log_block, log_stmt};
-import aux::{fn_info, fn_info_map, num_constraints, get_fn_info,
-             crate_ctxt, add_node};
+import util::common::{log_stmt};
+import aux::{num_constraints, get_fn_info, crate_ctxt, add_node};
 import middle::tstate::ann::empty_ann;
 
 fn collect_ids_expr(e: @expr, rs: @mutable [node_id]) { *rs += [e.id]; }
index b8544e2b5add322333a9321418b58401b3fade7a..b4d22fcb1188ad0748d86f74cad0b492f3a4bd9d 100644 (file)
@@ -1,26 +1,23 @@
-import std::{vec, int, uint, str, option};
+import std::{vec, int, uint, option};
 import std::option::*;
 import syntax::ast::*;
 import syntax::ast_util::*;
 import syntax::codemap::span;
 import syntax::visit;
-import util::common;
-import util::common::log_block;
-import std::map::{new_int_hash, new_uint_hash};
-import util::common::{log_expr_err, lit_eq};
+import std::map::{new_int_hash};
+import util::common::{lit_eq};
 import syntax::print::pprust::path_to_str;
 import tstate::ann::{pre_and_post, pre_and_post_state, empty_ann, prestate,
-                     poststate, precond, postcond, empty_states, pps_len,
+                     poststate, precond, postcond,
                      set_prestate, set_poststate, set_in_poststate_,
                      extend_prestate, extend_poststate, set_precondition,
-                     set_postcondition, set_in_postcond_, ts_ann,
+                     set_postcondition, ts_ann,
                      clear_in_postcond,
-                     clear_in_poststate, clear_in_poststate_};
+                     clear_in_poststate_};
 import tritv::*;
 import bitvectors::promises_;
 
-import syntax::print::pprust::{constr_args_to_str, constr_arg_to_str,
-                               lit_to_str};
+import syntax::print::pprust::{constr_args_to_str, lit_to_str};
 
 // Used to communicate which operands should be invalidated
 // to helper functions
index 9a0b1059bf2fbd9b45c94a5a784ba5607a374b54..c97f336fab965e6e828f8ca3cc8f42840d8682d4 100644 (file)
@@ -5,8 +5,8 @@
 import aux::*;
 import tstate::ann::{pre_and_post, precond, postcond, prestate, poststate,
                      relax_prestate, relax_precond, relax_poststate,
-                     pps_len, true_precond, empty_prestate,
-                     difference, union, intersect, clone,
+                     pps_len, true_precond,
+                     difference, union, clone,
                      set_in_postcond, set_in_poststate, set_in_poststate_,
                      clear_in_poststate, clear_in_prestate,
                      clear_in_poststate_};
index 42bfe2f4db9e2bf1b91443885426266ed9d313d2..22bec5c7d8fb32bccd26bdcfb913570796be04a0 100644 (file)
@@ -1,20 +1,17 @@
 
 import syntax::ast;
-import ast::{method, item, item_fn, _fn, obj_field, _obj, stmt, ident,
-             fn_ident, node_id, def_id, ty_param, crate, return_val, noreturn,
+import ast::{_fn, stmt,
+             fn_ident, node_id, crate, return_val, noreturn,
              expr};
-import syntax::ast_util::local_def;
 import syntax::visit;
 import syntax::codemap::span;
 import middle::ty::{type_is_nil, ret_ty_of_fn};
-import tstate::ann::{ts_ann, empty_poststate, true_precond, true_postcond,
-                     false_postcond, precond, postcond, poststate, prestate,
+import tstate::ann::{
+                     precond, prestate,
                      implies, ann_precond, ann_prestate};
-import std::{str, option};
-import std::option::{t, some, none};
+import std::{option};
 import aux::*;
 import syntax::print::pprust::ty_to_str;
-import util::common::log_stmt_err;
 import bitvectors::*;
 import annotate::annotate_crate;
 import collect_locals::mk_f_to_fn_info;
index b3c8d71a3bf7c5a7034830553346d7b9887ebeb2..ad25e7c59c88c24889e084bff682dfdf03d028b6 100644 (file)
@@ -1,11 +1,9 @@
-import std::{str, uint, int, vec};
 import syntax::ast::*;
 import syntax::ast_util::*;
 import util::ppaux::fn_ident_to_string;
 import std::option::*;
 import syntax::visit;
 import aux::*;
-import std::map::new_int_hash;
 import util::common::new_def_hash;
 import syntax::codemap::span;
 import syntax::ast_util::respan;
index d0832142d3e742e63f26f07783b5300dc0565c1c..70fb32e5f1198e766e964400c1a9544f18397fd5 100644 (file)
@@ -1,20 +1,18 @@
 
-import std::{vec, str, option};
+import std::{vec, option};
 import std::option::{none, some};
 
 import tstate::ann::*;
 import aux::*;
-import bitvectors::{bit_num, promises, seq_preconds, seq_postconds,
-                    intersect_states, declare_var, gen_poststate,
+import bitvectors::{bit_num, seq_preconds, seq_postconds,
+                    intersect_states,
                     relax_precond_block, gen};
 import tritv::*;
 import syntax::ast::*;
 import syntax::ast_util::*;
 import syntax::visit;
-import std::map::new_int_hash;
-import util::common::{new_def_hash, log_expr, log_fn, field_exprs,
-                      has_nonlocal_exits, log_stmt, log_stmt_err,
-                      log_expr_err, log_block_err, log_block};
+import util::common::{new_def_hash, log_expr, field_exprs,
+                      has_nonlocal_exits, log_stmt};
 import syntax::codemap::span;
 import util::ppaux::fn_ident_to_string;
 
index 2af37f22867adb483e50fb5cb0af7a14a7f21155..786df5facdcd0fa39f4f6ca803e79250dd5299b2 100644 (file)
@@ -1,7 +1,5 @@
-import syntax::print::pprust::path_to_str;
-import util::ppaux::ty_to_str;
-import std::{vec, str, option};
-import std::option::{get, is_none, none, some, maybe};
+import std::{vec, option};
+import std::option::{none, some};
 import ann::*;
 import aux::*;
 import tritv::{tritv_clone, tritv_set, ttrue};
@@ -10,10 +8,8 @@
 import syntax::ast::*;
 import syntax::ast_util::*;
 import syntax::codemap::span;
-import middle::ty::{expr_ty, type_is_nil, type_is_bot};
-import util::common::{new_def_hash, log_expr, log_block, log_block_err,
-                      log_fn, field_exprs, has_nonlocal_exits, log_stmt,
-                      log_stmt_err, log_expr_err};
+import middle::ty::{expr_ty, type_is_bot};
+import util::common::{field_exprs, has_nonlocal_exits};
 
 fn forbid_upvar(fcx: fn_ctxt, rhs_id: node_id, sp: span, t: oper_type) {
     alt t {
index fbfff0f794189cf03fffb74be8d68a809bfb8074..d20544e48e87af2c7a0cf68ef53919d228568e35 100644 (file)
@@ -1,8 +1,6 @@
-import std::int;
 import std::vec;
 import std::str;
 import std::uint;
-import std::box;
 import std::ufind;
 import std::map;
 import std::map::hashmap;
index e61a50c235e753822b2bc03ed9bf40798563ed2f..fabd2b069bdaad4f084273dde28e656e2cf32497 100644 (file)
@@ -1,23 +1,20 @@
 import syntax::{ast, ast_util};
-import ast::{mutability, spanned};
+import ast::spanned;
 import syntax::ast_util::{local_def, respan, ty_param_kind};
 import syntax::visit;
 import metadata::csearch;
 import driver::session;
-import util::common;
 import util::common::*;
 import syntax::codemap::span;
 import middle::ty;
 import middle::ty::{node_id_to_type, arg, bind_params_in_type, block_ty,
-                    expr_ty, field, method, node_type_table, pat_ty,
-                    ty_param_substs_opt_and_ty, ty_param_kinds_and_ty,
-                    ty_nil};
+                    expr_ty, field, node_type_table,
+                    ty_param_substs_opt_and_ty, ty_param_kinds_and_ty};
 import util::ppaux::ty_to_str;
-import middle::ty::unify::{ures_ok, ures_err, fixup_result, fix_ok, fix_err};
-import std::{int, vec, str, uint, map, option, smallintmap};
-import std::map::{hashmap, new_int_hash, new_str_hash};
-import std::option::{none, some, from_maybe};
-import middle::tstate::ann::ts_ann;
+import middle::ty::unify::{ures_ok, ures_err, fix_ok, fix_err};
+import std::{int, vec, str, option, smallintmap};
+import std::map::{hashmap, new_int_hash};
+import std::option::{none, some};
 import syntax::print::pprust::*;
 
 export check_crate;
index fb3b7caa3ca0189d8b46a1d2ab7563a73cb78b03..0fc352ac8be1916bd3fc2cba47e4434f0a0b2faf 100644 (file)
@@ -1,4 +1,4 @@
-import std::{str, vec, option};
+import std::{vec, option};
 import std::map::hashmap;
 import driver::session::session;
 import codemap::span;
index 68b2ea87148211257fd90cc7fbcfda95497a8398..f017f7e657455d96167feac275511f49d3bb12fd 100644 (file)
@@ -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;
 
index 81a50d2f0b7c0492c46873c043b244d2139b1fab..a602ab49309ba33b77fdbe49307c9134cc79a729 100644 (file)
@@ -3,7 +3,7 @@
 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::*;
index 575d49e15a6d3ff9e717280963b558c33bc4810e..b49f958a4d6d34f4bc8ad5bb5a25c81694d17d51 100644 (file)
@@ -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;
index e6e4f4e794e44d3b78a9f8665e4a6792459571de..5a08399da4978e2437005e32486f44377fa500c0 100644 (file)
@@ -1,4 +1,4 @@
-import std::{vec, str, option};
+import std::{vec, option};
 import base::*;
 import syntax::ast;
 
index 4cda6b82f5b2536e6029f8a0639e864bdc05d0fc..67b9291360281fd7c6cb4d1638692a2b87f057bb 100644 (file)
@@ -1,4 +1,4 @@
-import std::{str, option};
+import std::{option};
 import base::*;
 import syntax::ast;
 
index 3adcfbccf4e7dcd58eed88523d04145c0916f394..6a2a87de52c4a4e03d95dcbbdb89583560ee42d0 100644 (file)
@@ -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;
index e4b60c4c21e340bacb6e1ceb9e6e0404a575c6e3..03c65d79e75af0534739ac4329746e3c863bdea6 100644 (file)
@@ -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;
index 685b93941b91987c2250d1c0484296e72a7f6a35..df9683f6a93ac1c8eff561d00607ef93e18b2886 100644 (file)
@@ -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;
index 214955b14a056a714b232bbeb5bed4ae9bff26e5..4fa5baa7af4ca986f100e2b3a79f2cb56bebae8f 100644 (file)
@@ -4,7 +4,6 @@
 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};
index c89d99f0bafd7508830cff65b9b1a54aa9fb9259..ee02e24c7a8f4fc7be877625ea74071ebb225f35 100644 (file)
@@ -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;
 
index 4570b56cba989f5ac77c4e5957bf33fd62f6c19e..d45c8a8a43a93223f979af9079ed77133bac7974 100644 (file)
@@ -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};
 
index dea86723af376f9b4f2e2f67337383d712dce780..c814f168a4abc4e1038e54648c40adef4cc32997 100644 (file)
@@ -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};
 
index 2eb717f5109c68668d474dcc0595cd293f274104..99275d336d005440283efb5962a37b7609bc714b 100644 (file)
@@ -1,16 +1,12 @@
-import std::{str, map, uint, int, option};
+import std::{str, option};
 import std::math::{max, min};
 import std::map::hashmap;
-import std::option::{none, some};
+import std::option::{some};
 import syntax::ast;
-import ast::{ty, pat, lit, path};
-import syntax::codemap::{codemap, span};
+import ast::{ty, pat};
+import syntax::codemap::{span};
 import syntax::visit;
-import std::io::{stdout, str_writer, string_writer};
 import syntax::print;
-import print::pprust::{print_block, print_item, print_expr, print_path,
-                       print_decl, print_fn, print_type, print_literal};
-import print::pp::mk_printer;
 
 type flag = hashmap<str, ()>;
 
index a619d7e6884691029613ca65851148e03536cd52..5e51f6c684042c3124c60d5a032c8fd87cd286d2 100644 (file)
@@ -5,9 +5,7 @@
 import std::option;
 import std::fs;
 import std::vec;
-import std::str;
 import std::os;
-import back::link;
 
 export filesearch;
 export mk_filesearch;
@@ -100,4 +98,4 @@ fn get_sysroot(maybe_sysroot: option::t<fs::path>) -> fs::path {
       option::some(sr) { sr }
       option::none. { get_default_sysroot() }
     }
-}
\ No newline at end of file
+}
index d18a91f0d000b4af96c499ee8c9dac69bcf1254d..b148b99cde877366a0e27abab0003846d3223715 100644 (file)
@@ -3,13 +3,11 @@
 import middle::ty;
 import middle::ty::*;
 import metadata::encoder;
-import syntax::print::{pp, pprust};
+import syntax::print::pprust;
 import syntax::print::pprust::{path_to_str, constr_args_to_str, proto_to_str};
-import pp::{word, eof, zerobreak, hardbreak};
 import syntax::ast_util::ty_mach_to_str;
 import syntax::ast;
 import middle::ast_map;
-import metadata::csearch;
 
 fn mode_str(m: ty::mode) -> str {
     alt m {
index 480b45ae6b4b1344734597c3d2f60f37ca2350cd..387036b76a3fd5eec489eade1e4b4de79532906e 100644 (file)
@@ -1,6 +1,4 @@
-import std::{fs, io, getopts, math, vec, str, int, uint, option, result};
-import std::getopts::{optopt, opt_present, opt_str};
-import std::io::stdout;
+import std::{fs, io, math, vec, str, int, uint, option, result};
 
 import rustc::syntax::{ast, ast_util, fold, visit, codemap};
 import rustc::syntax::parse::parser;
index 4aa66ed28fc20e30d28f1a96c724623a994020a1..841afaa9797ada824a70d8925e75f03523f0882a 100644 (file)
@@ -27,8 +27,6 @@
 */
 
 import sys;
-import ptr;
-import unsafe;
 import task;
 
 export send;
index a6774144599699fded2410a5369223cf00e83534..c65373a8813dd4e3f49a412de88cd05ef015d90c 100644 (file)
@@ -4,8 +4,6 @@
 A type that represents one of two alternatives
 */
 
-import option;
-import option::{some, none};
 
 /*
 Tag: t
index ebb157c621cd590ac2c9b46c4daaed2d92d571ce..09b23694e2fcb33b13a4b4d8ed7afccdac5efcc9 100644 (file)
@@ -6,7 +6,6 @@
 These should be rolled into another module.
 */
 
-import str::sbuf;
 
 // Wow, this is an ugly way to write doc comments
 
index a975f3490feceb177c776b18ce6984decdb69c55..016c6381a7d2c5539d152df3b3a1e394c424229c 100644 (file)
@@ -1,4 +1,3 @@
-import os::libc;
 
 native "cdecl" mod rustrt {
     fn rust_get_stdin() -> os::libc::FILE;
index e14ad43375270ac20173d600d621d1614a007a64..daa86bb8b40c78595c92dd1f9cd922196ae4dece 100644 (file)
@@ -3,7 +3,6 @@
 // simplest interface possible for representing and running tests
 // while providing a base that other test frameworks may build off of.
 
-import generic_os::getenv;
 import task::task;
 
 export test_name;