Remove std::io once and for all!
This commit is contained in:
parent
c4907cfd14
commit
6bb1df9251
11 changed files with 123 additions and 1854 deletions
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// Tests that auto-ref can't create mutable aliases to immutable memory.
|
||||
|
||||
use std::io;
|
||||
|
||||
struct Foo {
|
||||
x: int
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue