Move std::rt::io to std::io

This commit is contained in:
Alex Crichton 2013-11-10 22:46:32 -08:00
parent 8b4683d79d
commit 49ee49296b
119 changed files with 347 additions and 336 deletions

View file

@ -21,7 +21,7 @@ use std::rand;
use std::str;
use std::util;
use std::vec;
use std::rt::io::File;
use std::io::File;
macro_rules! bench (
($argv:expr, $id:ident) => (maybe_run_test($argv, stringify!($id).to_owned(), $id))
@ -70,7 +70,7 @@ fn shift_push() {
}
fn read_line() {
use std::rt::io::buffered::BufferedReader;
use std::io::buffered::BufferedReader;
let mut path = Path::new(env!("CFG_SRC_DIR"));
path.push("src/test/bench/shootout-k-nucleotide.data");

View file

@ -18,8 +18,8 @@
extern mod extra;
use std::int;
use std::rt::io;
use std::rt::io::File;
use std::io;
use std::io::File;
use std::os;
use std::rand::Rng;
use std::rand;

View file

@ -22,7 +22,7 @@ use std::comm;
use std::hashmap::HashMap;
use std::option;
use std::os;
use std::rt::io;
use std::io;
use std::str;
use std::task;
use std::util;
@ -153,10 +153,10 @@ fn make_sequence_processor(sz: uint,
// given a FASTA file on stdin, process sequence THREE
fn main() {
use std::rt::io::Reader;
use std::rt::io::native::stdio;
use std::rt::io::mem::MemReader;
use std::rt::io::buffered::BufferedReader;
use std::io::Reader;
use std::io::native::stdio;
use std::io::mem::MemReader;
use std::io::buffered::BufferedReader;
let rdr = if os::getenv("RUST_BENCH").is_some() {
let foo = include_bin!("shootout-k-nucleotide.data");

View file

@ -14,9 +14,9 @@
extern mod extra;
use std::rt::io;
use std::rt::io::stdio::StdReader;
use std::rt::io::buffered::BufferedReader;
use std::io;
use std::io::stdio::StdReader;
use std::io::buffered::BufferedReader;
use std::os;
use std::uint;
use std::unstable::intrinsics::cttz16;

View file

@ -18,7 +18,7 @@
use std::libc;
use std::run;
use std::str;
use std::rt::io;
use std::io;
#[test]
fn test_destroy_once() {

View file

@ -17,8 +17,8 @@
extern mod extra;
use std::rt::io::mem::MemWriter;
use std::rt::io::Decorator;
use std::io::mem::MemWriter;
use std::io::Decorator;
use std::rand::{random, Rand};
use extra::serialize::{Encodable, Decodable};
use extra::ebml;

View file

@ -16,7 +16,7 @@ use extra::glob::glob;
use extra::tempfile::TempDir;
use std::unstable::finally::Finally;
use std::{os, unstable};
use std::rt::io;
use std::io;
pub fn main() {
fn mk_file(path: &str, directory: bool) {

View file

@ -14,10 +14,10 @@
#[deny(warnings)];
use std::fmt;
use std::rt::io::Decorator;
use std::rt::io::mem::MemWriter;
use std::rt::io;
use std::rt::io::Writer;
use std::io::Decorator;
use std::io::mem::MemWriter;
use std::io;
use std::io::Writer;
use std::str;
struct A;

View file

@ -16,7 +16,7 @@
extern mod extra;
use std::rt::io;
use std::io;
use std::to_str;
enum square {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::rt::io;
use std::io;
pub fn main() {
let stdout = &mut io::stdout() as &mut io::Writer;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::rt::io;
use std::io;
fn foo(a: &mut io::Writer) {
a.write([])

View file

@ -17,8 +17,8 @@ extern mod extra;
use extra::tempfile::TempDir;
use std::os;
use std::libc;
use std::rt::io;
use std::rt::io::fs;
use std::io;
use std::io::fs;
fn rename_directory() {
unsafe {

View file

@ -23,9 +23,9 @@
//
// See #9341
use std::rt::io;
use std::rt::io::process;
use std::rt::io::process::{Process, ProcessConfig, CreatePipe, Ignored};
use std::io;
use std::io::process;
use std::io::process::{Process, ProcessConfig, CreatePipe, Ignored};
use std::str;
#[test]

View file

@ -11,7 +11,7 @@
// xfail-fast
use std::{os, run};
use std::rt::io::process;
use std::io::process;
fn main() {
let args = os::args();

View file

@ -13,7 +13,7 @@
extern mod extra;
use extra::tempfile;
use std::rt::io::File;
use std::io::File;
pub fn main() {
let dir = tempfile::TempDir::new_in(&Path::new("."), "").unwrap();

View file

@ -24,8 +24,8 @@ use extra::tempfile::TempDir;
use std::os;
use std::task;
use std::cell::Cell;
use std::rt::io;
use std::rt::io::fs;
use std::io;
use std::io::fs;
fn test_tempdir() {
let path = {