提交 98ba91f8 编写于 作者: H Huon Wilson

remove unused import warnings

上级 00f59168
......@@ -10,14 +10,9 @@
use core::prelude::*;
use core::comm;
use core::io;
use core::libc::c_int;
use core::os;
use core::run;
use core::str;
use core::task;
use core::vec;
#[cfg(target_os = "win32")]
fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
......@@ -74,4 +69,3 @@ pub fn run(lib_path: &str,
err: str::from_bytes(output.error)
}
}
......@@ -16,8 +16,6 @@
#[allow(missing_doc)];
use core::prelude::*;
use core::libc::{c_void, size_t, c_int};
use core::libc;
use core::vec;
......@@ -87,6 +85,7 @@ mod tests {
use super::*;
use core::rand;
use core::rand::RngUtil;
use core::prelude::*;
#[test]
#[allow(non_implicitly_copyable_typarams)]
......
......@@ -654,7 +654,6 @@ mod test {
use core::int;
use core::io::BytesWriter;
use core::result;
use core::sys;
use core::task;
#[test]
......
......@@ -929,11 +929,8 @@ mod test_tim_sort {
use core::prelude::*;
use sort::tim_sort;
use core::local_data;
use core::rand::RngUtil;
use core::rand;
use core::uint;
use core::vec;
struct CVal {
......
......@@ -148,4 +148,3 @@ pub mod extra {
pub use serialize;
pub use test;
}
......@@ -731,7 +731,6 @@ mod tests {
use core::cast;
use core::cell::Cell;
use core::comm;
use core::ptr;
use core::result;
use core::task;
use core::vec;
......
......@@ -34,7 +34,6 @@ mod tests {
use core::prelude::*;
use tempfile::mkdtemp;
use tempfile;
use core::os;
use core::str;
......
......@@ -1034,8 +1034,6 @@ mod test_set {
use super::*;
use core::vec;
#[test]
fn test_clear() {
let mut s = TreeSet::new();
......
......@@ -1234,7 +1234,6 @@ mod test {
use core::comm::{SharedChan, stream, GenericChan, GenericPort};
use core::libc;
use core::result;
use core::str;
use core::sys;
use core::task;
......
......@@ -22,7 +22,6 @@
use syntax::codemap;
use syntax::ext::base::ExtCtxt;
use syntax::fold;
use syntax::parse::token;
use syntax::print::pprust;
use syntax::{ast, ast_util};
......
......@@ -53,7 +53,6 @@
use syntax::ast_map::{path, path_elt};
use syntax::codemap::span;
use syntax::parse::token;
use syntax::parse::token::ident_interner;
use syntax::{ast, ast_map};
use syntax::abi::{X86, X86_64, Arm, Mips};
......
......@@ -29,7 +29,6 @@
use core::sys;
use core::vec;
use syntax::codemap::span;
use syntax::parse::token::ident_interner;
use syntax::{ast, codemap, ast_util, ast_map};
static LLVMDebugVersion: int = (9 << 16);
......
......@@ -36,8 +36,6 @@ extern mod std(name = "std", vers = "0.7-pre");
// For bootstrapping purposes.
#[cfg(stage0)]
pub use core::str;
#[cfg(stage0)]
pub use core::unstable;
use core::prelude::*;
......
......@@ -27,7 +27,6 @@
use core::iterator::IteratorUtil;
use core::str;
use core::util;
use core::vec;
pub fn mk_pass() -> Pass {
Pass {
......
......@@ -10,7 +10,6 @@
use core::prelude::*;
use core::vec;
use core::iterator::IteratorUtil;
use astsrv;
......
......@@ -24,7 +24,6 @@
use core::iterator::IteratorUtil;
use core::str;
use core::uint;
use core::vec;
use pass::Pass;
use text_pass;
......
......@@ -286,8 +286,6 @@ pub unsafe fn reserve_at_least<T>(v: &mut @[T], n: uint) {
#[cfg(test)]
mod test {
use super::*;
use prelude::*;
use uint;
#[test]
......
......@@ -42,7 +42,6 @@
use cmp::Ord;
use option::{Option, Some, None};
use vec::OwnedVector;
use num::{One, Zero};
use ops::{Add, Mul};
......
......@@ -18,7 +18,6 @@
*/
use cmp;
use iter;
use iter::{FromIter, Times};
use num::{Zero, One};
use option::{Option, Some, None};
......
......@@ -11,8 +11,6 @@
//! Unsafe pointer utility functions
use cast;
#[cfg(stage0)] use libc;
#[cfg(stage0)] use libc::{c_void, size_t};
use option::{Option, Some, None};
use sys;
use unstable::intrinsics;
......
......@@ -14,7 +14,6 @@
use option::{Some, None};
use cast;
use cmp::{Eq, Ord};
use gc;
use io;
use libc;
......
......@@ -14,7 +14,6 @@
use iterator::IteratorUtil;
use uint;
use util::{swap, replace};
use vec;
// FIXME: #5244: need to manually update the TrieNode constructor
static SHIFT: uint = 4;
......
......@@ -3349,13 +3349,13 @@ fn test_eachi() {
#[test]
fn test_each_ret_len0() {
let mut a0 : [int, .. 0] = [];
let a0 : [int, .. 0] = [];
assert_eq!(each(a0, |_p| fail!()), true);
}
#[test]
fn test_each_ret_len1() {
let mut a1 = [17];
let a1 = [17];
assert_eq!(each(a1, |_p| true), true);
assert_eq!(each(a1, |_p| false), false);
}
......
......@@ -15,7 +15,7 @@
use codemap::{span, spanned};
use abi::AbiSet;
use opt_vec::OptVec;
use parse::token::{ident_to_str, interner_get, str_to_ident};
use parse::token::{interner_get, str_to_ident};
use core::hashmap::HashMap;
use core::option::Option;
......
......@@ -20,7 +20,6 @@
use parse::token;
use visit;
use core::iterator::IteratorUtil;
use core::hashmap::HashMap;
use core::int;
use core::option;
......@@ -793,6 +792,7 @@ mod test {
use ast::*;
use super::*;
use core::io;
use core::iterator::IteratorUtil;
#[test] fn xorpush_test () {
let mut s = ~[];
......
......@@ -11,11 +11,11 @@
use core::prelude::*;
use ast::{blk_, attribute_, attr_outer, meta_word};
use ast::{crate, decl_local, expr_, expr_mac, mac_invoc_tt};
use ast::{item_mac, local_, stmt_, stmt_decl, stmt_mac, stmt_expr, stmt_semi};
use ast::{SCTable, illegal_ctxt};
use ast::{crate, expr_, expr_mac, mac_invoc_tt};
use ast::{item_mac, stmt_, stmt_mac, stmt_expr, stmt_semi};
use ast::{illegal_ctxt};
use ast;
use ast_util::{new_rename, new_mark, resolve, get_sctable};
use ast_util::{new_rename, new_mark, resolve};
use attr;
use codemap;
use codemap::{span, CallInfo, ExpandedFrom, NameAndSpan, spanned};
......@@ -23,9 +23,9 @@
use fold::*;
use parse;
use parse::{parse_item_from_source_str};
use parse::token::{ident_to_str, intern, fresh_name};
use parse::token::{ident_to_str, intern};
use visit;
use visit::{Visitor,mk_vt};
use visit::Visitor;
use core::iterator::IteratorUtil;
use core::vec;
......@@ -749,16 +749,14 @@ mod test {
use super::*;
use ast;
use ast::{attribute_, attr_outer, meta_word, empty_ctxt};
use ast_util::{get_sctable};
use codemap;
use codemap::spanned;
use parse;
use parse::token::{gensym, intern, get_ident_interner};
use parse::token::{intern, get_ident_interner};
use print::pprust;
use util::parser_testing::{string_to_item, string_to_pat, strs_to_idents};
use visit::{mk_vt,Visitor};
use visit::{mk_vt};
use core::io;
use core::option::{None, Some};
// make sure that fail! is present
......
......@@ -19,7 +19,6 @@
use parse::lexer;
use parse::token;
use parse::token::{get_ident_interner};
use parse;
use core::iterator::IteratorUtil;
use core::io;
......
......@@ -341,10 +341,9 @@ mod test {
use codemap::{span, BytePos, spanned};
use opt_vec;
use ast;
use ast::{new_ident};
use abi;
use parse::parser::Parser;
use parse::token::{intern, str_to_ident};
use parse::token::{str_to_ident};
use util::parser_testing::{string_to_tts_and_sess, string_to_parser};
use util::parser_testing::{string_to_expr, string_to_item};
use util::parser_testing::{string_to_stmt, strs_to_idents};
......
......@@ -22,7 +22,6 @@
use core::cmp::Equiv;
use core::local_data;
use core::str;
use core::hashmap::HashSet;
use core::rand;
use core::rand::RngUtil;
use core::to_bytes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册