Remove std::io once and for all!

This commit is contained in:
Alex Crichton 2013-10-21 23:06:12 -07:00
parent c4907cfd14
commit 6bb1df9251
11 changed files with 123 additions and 1854 deletions

View file

@ -10,8 +10,6 @@
// Tests that auto-ref can't create mutable aliases to immutable memory.
use std::io;
struct Foo {
x: int
}

View file

@ -15,14 +15,16 @@ extern mod extra;
use extra::glob::glob;
use extra::tempfile::TempDir;
use std::unstable::finally::Finally;
use std::{io, os, unstable};
use std::{os, unstable};
use std::rt::io;
use std::rt::io::file::FileInfo;
pub fn main() {
fn mk_file(path: &str, directory: bool) {
if directory {
os::make_dir(&Path::new(path), 0xFFFF);
} else {
io::mk_file_writer(&Path::new(path), [io::Create]);
Path::new(path).open_writer(io::Create);
}
}