1
Fork 0

Remove std::str. Issue #855

This commit is contained in:
Brian Anderson 2011-09-01 16:09:15 -07:00
parent 1b15c9e155
commit e824775d53
50 changed files with 2 additions and 59 deletions

View file

@ -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;

View file

@ -1,7 +1,6 @@
import lib::llvm::llvm;
import lib::llvm::llvm::ModuleRef;
import std::str;
import std::istr;
import std::os::target_os;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -3,7 +3,6 @@
import std::vec;
import std::map;
import std::str;
import std::istr;
import syntax::ast;

View file

@ -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;

View file

@ -1,7 +1,6 @@
// Metadata encoding
import std::vec;
import std::str;
import std::istr;
import std::uint;
import std::io;

View file

@ -1,7 +1,6 @@
// Type decoding
import std::vec;
import std::str;
import std::istr;
import std::uint;
import std::option;

View file

@ -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;

View file

@ -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;

View file

@ -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::*;

View file

@ -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;

View file

@ -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;

View file

@ -1,4 +1,3 @@
import std::str;
import std::istr;
import std::vec;
import std::option;

View file

@ -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,

View file

@ -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;

View file

@ -1,6 +1,5 @@
// Translation of object-related things to LLVM IR.
import std::str;
import std::istr;
import std::option;
import std::vec;

View file

@ -1,6 +1,5 @@
import std::vec;
import std::int::str;
import std::str;
import std::istr;
import std::option;
import std::option::*;

View file

@ -1,6 +1,5 @@
import std::int;
import std::vec;
import std::str;
import std::istr;
import std::uint;
import std::box;

View file

@ -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;

View file

@ -1,7 +1,6 @@
// The Rust abstract syntax tree.
import std::option;
import std::str;
import codemap::span;
import codemap::filename;

View file

@ -1,4 +1,3 @@
import std::str;
import std::istr;
import std::option;
import codemap::span;

View file

@ -1,6 +1,5 @@
import std::vec;
import std::uint;
import std::str;
import std::istr;
import std::term;
import std::io;

View file

@ -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;

View file

@ -1,5 +1,4 @@
import std::str;
import std::istr;
import std::option;
import std::option::some;

View file

@ -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;

View file

@ -1,7 +1,6 @@
import std::io;
import std::vec;
import std::str;
import std::istr;
import std::option;
import std::option::some;

View file

@ -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;

View file

@ -1,7 +1,6 @@
import std::io;
import std::vec;
import std::str;
import std::istr;
/*

View file

@ -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;

View file

@ -1,4 +1,3 @@
import std::str;
import std::istr;
import std::map;
import std::map::hashmap;

View file

@ -1,5 +1,4 @@
import std::vec;
import std::str;
import std::istr;
import std::int;
import std::option;

View file

@ -9,7 +9,6 @@ import std::getopts::opt_str;
import std::io;
import std::io::stdout;
import std::vec;
import std::str;
import std::istr;
import std::uint;
import std::option;

View file

@ -1,7 +1,6 @@
import os::getcwd;
import os_fs;
import str;
native "rust" mod rustrt {
fn rust_file_is_dir(path: istr::sbuf) -> int;

View file

@ -1,4 +1,3 @@
import str;
import vec;
import uint;

View file

@ -3,7 +3,6 @@ import comm::chan;
import comm::send;
import comm::recv;
import str;
import net;
type ctx = aio::ctx;

View file

@ -15,7 +15,6 @@ mod uint;
mod u8;
mod u64;
mod vec;
mod str;
mod istr;
// General io and system-services modules.

View file

@ -1,10 +0,0 @@
export unsafe_from_bytes;
native "rust" mod rustrt {
fn str_from_vec(b: &[mutable? u8]) -> str;
fn refcount<T>(s: str) -> uint;
}
fn unsafe_from_bytes(v: &[mutable? u8]) -> str {
ret rustrt::str_from_vec(v);
}

View file

@ -6,7 +6,6 @@
*/
use std;
import std::int;
import std::str;
import std::istr;
tag bottle { none; dual; single; multiple(int); }

View file

@ -4,7 +4,6 @@
*/
use std;
import std::int;
import std::str;
import std::istr;
fn main() {

View file

@ -2,7 +2,6 @@ import std::option;
import std::getopts;
import std::test;
import std::fs;
import std::str;
import std::istr;
import std::vec;
import std::task;

View file

@ -1,5 +1,4 @@
import std::option;
import std::str;
import std::istr;
import std::io;
import std::fs;

View file

@ -12,7 +12,6 @@ import std::vec;
import std::os;
import std::run;
import std::io;
import std::str;
import std::istr;
import std::comm::chan;
import std::comm::port;

View file

@ -1,5 +1,4 @@
import std::io;
import std::str;
import std::istr;
import std::option;
import std::fs;

View file

@ -1,6 +1,5 @@
// error-pattern:meh
// no-valgrind
use std;
import std::str;
fn main() { let str_var: istr = ~"meh"; fail #ifmt["%s", str_var]; }

View file

@ -1,6 +1,5 @@
// error-pattern:quux
use std;
import std::str::*;
import std::uint::*;
fn nop(a: uint, b: uint) : le(a, b) { fail "quux"; }

View file

@ -1,6 +1,5 @@
// tests that the pred in a claim isn't actually eval'd
use std;
import std::str::*;
import std::uint::*;
pure fn fails(a: uint) -> bool { fail; }

View file

@ -15,7 +15,7 @@ fn connectTask(cx: sio::ctx, ip: net::ip_addr, portnum: int) {
fn main() {
let cx: sio::ctx = sio::new();
let srv: sio::server = sio::create_server(
cx, net::parse_addr("~0.0.0.0"), 9090);
cx, net::parse_addr(~"0.0.0.0"), 9090);
let child = task::_spawn(bind connectTask(cx,
net::parse_addr(~"127.0.0.1"),
9090));