diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-01 16:09:15 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-01 16:09:15 -0700 |
| commit | e824775d5332b160c7623c60f2e04372e83f26aa (patch) | |
| tree | f4fbf98de07957d4761595b00828a5207e0e40bd /src/comp | |
| parent | 1b15c9e1553825e23915e4f6532669064543389d (diff) | |
| download | rust-e824775d5332b160c7623c60f2e04372e83f26aa.tar.gz rust-e824775d5332b160c7623c60f2e04372e83f26aa.zip | |
Remove std::str. Issue #855
Diffstat (limited to 'src/comp')
34 files changed, 1 insertions, 34 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index 9f0fbe1d328..de8aa4bfa1b 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -5,7 +5,6 @@ import front::attr; import middle::ty; import metadata::encoder; import middle::trans_common::crate_ctxt; -import std::str; import std::istr; import std::fs; import std::vec; diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs index 727bb319ae8..6823f8c2030 100644 --- a/src/comp/back/x86.rs +++ b/src/comp/back/x86.rs @@ -1,7 +1,6 @@ import lib::llvm::llvm; import lib::llvm::llvm::ModuleRef; -import std::str; import std::istr; import std::os::target_os; diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index daa36a67bda..71537effd03 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -26,7 +26,6 @@ import std::map::mk_hashmap; import std::option; import std::option::some; import std::option::none; -import std::str; import std::istr; import std::vec; import std::int; diff --git a/src/comp/driver/session.rs b/src/comp/driver/session.rs index 9f952041df1..cf5841b1227 100644 --- a/src/comp/driver/session.rs +++ b/src/comp/driver/session.rs @@ -9,7 +9,6 @@ import std::map; import std::option; import std::option::some; import std::option::none; -import std::str; import std::istr; import syntax::parse::parser::parse_sess; diff --git a/src/comp/front/attr.rs b/src/comp/front/attr.rs index 876a6cbc8b6..5d122ce771d 100644 --- a/src/comp/front/attr.rs +++ b/src/comp/front/attr.rs @@ -1,7 +1,6 @@ // Functions dealing with attributes and meta_items import std::vec; -import std::str; import std::istr; import std::map; import std::option; diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs index 5100037ea7d..64b198b861a 100644 --- a/src/comp/metadata/creader.rs +++ b/src/comp/metadata/creader.rs @@ -14,7 +14,6 @@ import syntax::codemap::span; import back::x86; import util::common; import std::vec; -import std::str; import std::istr; import std::fs; import std::io; diff --git a/src/comp/metadata/cstore.rs b/src/comp/metadata/cstore.rs index 5ff01c94646..b286e155f7a 100644 --- a/src/comp/metadata/cstore.rs +++ b/src/comp/metadata/cstore.rs @@ -3,7 +3,6 @@ import std::vec; import std::map; -import std::str; import std::istr; import syntax::ast; diff --git a/src/comp/metadata/decoder.rs b/src/comp/metadata/decoder.rs index a3637b178a0..e6a44618cf9 100644 --- a/src/comp/metadata/decoder.rs +++ b/src/comp/metadata/decoder.rs @@ -3,7 +3,6 @@ import std::ebml; import std::vec; import std::option; -import std::str; import std::istr; import std::io; import std::map::hashmap; diff --git a/src/comp/metadata/encoder.rs b/src/comp/metadata/encoder.rs index b403ef7de8b..e4e8ff1bbe9 100644 --- a/src/comp/metadata/encoder.rs +++ b/src/comp/metadata/encoder.rs @@ -1,7 +1,6 @@ // Metadata encoding import std::vec; -import std::str; import std::istr; import std::uint; import std::io; diff --git a/src/comp/metadata/tydecode.rs b/src/comp/metadata/tydecode.rs index 5da912257f9..9f5a0dca4d6 100644 --- a/src/comp/metadata/tydecode.rs +++ b/src/comp/metadata/tydecode.rs @@ -1,7 +1,6 @@ // Type decoding import std::vec; -import std::str; import std::istr; import std::uint; import std::option; diff --git a/src/comp/middle/alias.rs b/src/comp/middle/alias.rs index e14bf1d5728..5d42131e3af 100644 --- a/src/comp/middle/alias.rs +++ b/src/comp/middle/alias.rs @@ -10,7 +10,6 @@ import syntax::codemap::span; import syntax::visit; import visit::vt; import std::vec; -import std::str; import std::istr; import std::option; import std::option::some; diff --git a/src/comp/middle/gc.rs b/src/comp/middle/gc.rs index 8fbe5e39ee3..3932e9c0735 100644 --- a/src/comp/middle/gc.rs +++ b/src/comp/middle/gc.rs @@ -10,7 +10,6 @@ import middle::ty; import std::option::none; import std::option::some; import std::ptr; -import std::str; import std::istr; import std::unsafe; import std::vec; diff --git a/src/comp/middle/resolve.rs b/src/comp/middle/resolve.rs index ca688f533ec..e712abaa751 100644 --- a/src/comp/middle/resolve.rs +++ b/src/comp/middle/resolve.rs @@ -32,7 +32,6 @@ import std::option; import std::option::is_none; import std::option::some; import std::option::none; -import std::str; import std::istr; import syntax::print::pprust::*; diff --git a/src/comp/middle/shape.rs b/src/comp/middle/shape.rs index 5fe85200564..0a000fd6f68 100644 --- a/src/comp/middle/shape.rs +++ b/src/comp/middle/shape.rs @@ -30,7 +30,6 @@ import std::vec; import std::map::hashmap; import std::option::none; import std::option::some; -import std::str; import std::istr; import ty_ctxt = middle::ty::ctxt; diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index c7078b84904..3cf955eba10 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -13,7 +13,6 @@ // 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; -import std::str; import std::istr; import std::uint; import std::map; diff --git a/src/comp/middle/trans_alt.rs b/src/comp/middle/trans_alt.rs index 6dddf42caeb..e8fc3f33c0f 100644 --- a/src/comp/middle/trans_alt.rs +++ b/src/comp/middle/trans_alt.rs @@ -1,4 +1,3 @@ -import std::str; import std::istr; import std::vec; import std::option; diff --git a/src/comp/middle/trans_build.rs b/src/comp/middle/trans_build.rs index 97904e9cbf5..9cad896c949 100644 --- a/src/comp/middle/trans_build.rs +++ b/src/comp/middle/trans_build.rs @@ -1,4 +1,4 @@ -import std::{vec, str, istr}; +import std::{vec, istr}; import std::istr::sbuf; import lib::llvm::llvm; import llvm::{ValueRef, TypeRef, BasicBlockRef, BuilderRef, diff --git a/src/comp/middle/trans_common.rs b/src/comp/middle/trans_common.rs index 1e60daec470..9cee76c1db6 100644 --- a/src/comp/middle/trans_common.rs +++ b/src/comp/middle/trans_common.rs @@ -6,7 +6,6 @@ import std::int; import std::vec; import std::vec::to_ptr; -import std::str; import std::istr; import std::uint; import std::map; diff --git a/src/comp/middle/trans_objects.rs b/src/comp/middle/trans_objects.rs index 1268fa1ee17..49da4aba9a0 100644 --- a/src/comp/middle/trans_objects.rs +++ b/src/comp/middle/trans_objects.rs @@ -1,6 +1,5 @@ // Translation of object-related things to LLVM IR. -import std::str; import std::istr; import std::option; import std::vec; diff --git a/src/comp/middle/tstate/auxiliary.rs b/src/comp/middle/tstate/auxiliary.rs index d4caf9bc03d..bdc94f803cf 100644 --- a/src/comp/middle/tstate/auxiliary.rs +++ b/src/comp/middle/tstate/auxiliary.rs @@ -1,6 +1,5 @@ import std::vec; import std::int::str; -import std::str; import std::istr; import std::option; import std::option::*; diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index f24eee8123c..5a09bfa9b6f 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -1,6 +1,5 @@ import std::int; import std::vec; -import std::str; import std::istr; import std::uint; import std::box; diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index 21137bdb652..23153a23e29 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -36,7 +36,6 @@ import middle::ty::unify::fix_ok; import middle::ty::unify::fix_err; import std::int; import std::vec; -import std::str; import std::istr; import std::uint; import std::map; diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index 582da17f465..f6a34e5c544 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -1,7 +1,6 @@ // The Rust abstract syntax tree. import std::option; -import std::str; import codemap::span; import codemap::filename; diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs index 1052ef195fa..5481229a762 100644 --- a/src/comp/syntax/ast_util.rs +++ b/src/comp/syntax/ast_util.rs @@ -1,4 +1,3 @@ -import std::str; import std::istr; import std::option; import codemap::span; diff --git a/src/comp/syntax/codemap.rs b/src/comp/syntax/codemap.rs index 9c9a0049cf1..14dc3e46448 100644 --- a/src/comp/syntax/codemap.rs +++ b/src/comp/syntax/codemap.rs @@ -1,6 +1,5 @@ import std::vec; import std::uint; -import std::str; import std::istr; import std::term; import std::io; diff --git a/src/comp/syntax/ext/ifmt.rs b/src/comp/syntax/ext/ifmt.rs index 4fcb1db8816..b48d73d0fc5 100644 --- a/src/comp/syntax/ext/ifmt.rs +++ b/src/comp/syntax/ext/ifmt.rs @@ -6,7 +6,6 @@ * compiler syntax extension plugin interface. */ import std::vec; -import std::str; import std::istr; import std::option; import std::option::none; diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 1a4b3c9c29f..6318c4c769b 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -1,5 +1,4 @@ -import std::str; import std::istr; import std::option; import std::option::some; diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index fa147faa1cc..37eddf59abe 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -2,7 +2,6 @@ import std::io; import std::int; import std::vec; -import std::str; import std::istr; import std::map; import std::map::hashmap; diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 9c61f569e21..cf3c02cb03a 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1,7 +1,6 @@ import std::io; import std::vec; -import std::str; import std::istr; import std::option; import std::option::some; diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index b83a2f27e31..6ae2affdb04 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -5,7 +5,6 @@ import std::map::new_str_hash; import util::interner; import std::int; import std::uint; -import std::str; import std::istr; type str_num = uint; diff --git a/src/comp/syntax/print/pp.rs b/src/comp/syntax/print/pp.rs index 59460a07e06..ae94fb959b5 100644 --- a/src/comp/syntax/print/pp.rs +++ b/src/comp/syntax/print/pp.rs @@ -1,7 +1,6 @@ import std::io; import std::vec; -import std::str; import std::istr; /* diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index c01ede9d391..fa6891a0812 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -2,7 +2,6 @@ import std::vec; import std::int; import std::io; -import std::str; import std::istr; import std::uint; import std::option; diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 18a1ff84c22..da0fba4a96a 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -1,4 +1,3 @@ -import std::str; import std::istr; import std::map; import std::map::hashmap; diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index 4ec69b61245..5e7e7e3fd78 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -1,5 +1,4 @@ import std::vec; -import std::str; import std::istr; import std::int; import std::option; |
