about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-10 22:46:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-11 20:44:07 -0800
commit49ee49296b65f3d807142f3326bee71dd7e13290 (patch)
treeb3380df09c8a10473820969a62f5775832255fda /src
parent8b4683d79d4b74f53808470cd2f98b23a0af9b93 (diff)
downloadrust-49ee49296b65f3d807142f3326bee71dd7e13290.tar.gz
rust-49ee49296b65f3d807142f3326bee71dd7e13290.zip
Move std::rt::io to std::io
Diffstat (limited to 'src')
-rw-r--r--src/compiletest/compiletest.rs2
-rw-r--r--src/compiletest/errors.rs4
-rw-r--r--src/compiletest/header.rs4
-rw-r--r--src/compiletest/procsrv.rs2
-rw-r--r--src/compiletest/runtest.rs28
-rwxr-xr-xsrc/etc/combine-tests.py4
-rw-r--r--src/libextra/ebml.rs14
-rw-r--r--src/libextra/glob.rs4
-rw-r--r--src/libextra/json.rs12
-rw-r--r--src/libextra/stats.rs8
-rw-r--r--src/libextra/tempfile.rs4
-rw-r--r--src/libextra/term.rs2
-rw-r--r--src/libextra/terminfo/parser/compiled.rs2
-rw-r--r--src/libextra/terminfo/searcher.rs4
-rw-r--r--src/libextra/test.rs10
-rw-r--r--src/libextra/time.rs4
-rw-r--r--src/libextra/url.rs4
-rw-r--r--src/libextra/uuid.rs4
-rw-r--r--src/libextra/workcache.rs8
-rw-r--r--src/librustc/back/link.rs4
-rw-r--r--src/librustc/driver/driver.rs6
-rw-r--r--src/librustc/lib.rs4
-rw-r--r--src/librustc/metadata/decoder.rs4
-rw-r--r--src/librustc/metadata/encoder.rs4
-rw-r--r--src/librustc/metadata/filesearch.rs4
-rw-r--r--src/librustc/metadata/loader.rs2
-rw-r--r--src/librustc/metadata/tyencode.rs6
-rw-r--r--src/librustc/middle/astencode.rs6
-rw-r--r--src/librustc/middle/dataflow.rs2
-rw-r--r--src/librustc/middle/liveness.rs2
-rw-r--r--src/librustdoc/html/format.rs2
-rw-r--r--src/librustdoc/html/layout.rs2
-rw-r--r--src/librustdoc/html/markdown.rs2
-rw-r--r--src/librustdoc/html/render.rs8
-rw-r--r--src/librustdoc/lib.rs8
-rw-r--r--src/librustpkg/conditions.rs6
-rw-r--r--src/librustpkg/installed_packages.rs4
-rw-r--r--src/librustpkg/lib.rs6
-rw-r--r--src/librustpkg/messages.rs2
-rw-r--r--src/librustpkg/package_source.rs4
-rw-r--r--src/librustpkg/path_util.rs4
-rw-r--r--src/librustpkg/source_control.rs2
-rw-r--r--src/librustpkg/tests.rs10
-rw-r--r--src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs2
-rw-r--r--src/librustpkg/util.rs4
-rw-r--r--src/librustpkg/workcache_support.rs4
-rw-r--r--src/librustuv/addrinfo.rs4
-rw-r--r--src/librustuv/file.rs6
-rw-r--r--src/librustuv/lib.rs4
-rw-r--r--src/librustuv/macros.rs4
-rw-r--r--src/librustuv/net.rs4
-rw-r--r--src/librustuv/pipe.rs2
-rw-r--r--src/librustuv/process.rs4
-rw-r--r--src/librustuv/signal.rs4
-rw-r--r--src/librustuv/tty.rs2
-rw-r--r--src/librustuv/uvio.rs14
-rw-r--r--src/libstd/fmt/mod.rs10
-rw-r--r--src/libstd/hash.rs2
-rw-r--r--src/libstd/io/buffered.rs (renamed from src/libstd/rt/io/buffered.rs)5
-rw-r--r--src/libstd/io/comm_adapters.rs (renamed from src/libstd/rt/io/comm_adapters.rs)0
-rw-r--r--src/libstd/io/extensions.rs (renamed from src/libstd/rt/io/extensions.rs)7
-rw-r--r--src/libstd/io/flate.rs (renamed from src/libstd/rt/io/flate.rs)0
-rw-r--r--src/libstd/io/fs.rs (renamed from src/libstd/rt/io/fs.rs)41
-rw-r--r--src/libstd/io/mem.rs (renamed from src/libstd/rt/io/mem.rs)2
-rw-r--r--src/libstd/io/mod.rs (renamed from src/libstd/rt/io/mod.rs)12
-rw-r--r--src/libstd/io/native/file.rs (renamed from src/libstd/rt/io/native/file.rs)10
-rw-r--r--src/libstd/io/native/process.rs (renamed from src/libstd/rt/io/native/process.rs)2
-rw-r--r--src/libstd/io/native/stdio.rs (renamed from src/libstd/rt/io/native/stdio.rs)2
-rw-r--r--src/libstd/io/net/addrinfo.rs (renamed from src/libstd/rt/io/net/addrinfo.rs)7
-rw-r--r--src/libstd/io/net/ip.rs (renamed from src/libstd/rt/io/net/ip.rs)6
-rw-r--r--src/libstd/io/net/mod.rs (renamed from src/libstd/rt/io/net/mod.rs)0
-rw-r--r--src/libstd/io/net/tcp.rs (renamed from src/libstd/rt/io/net/tcp.rs)40
-rw-r--r--src/libstd/io/net/udp.rs (renamed from src/libstd/rt/io/net/udp.rs)12
-rw-r--r--src/libstd/io/net/unix.rs (renamed from src/libstd/rt/io/net/unix.rs)10
-rw-r--r--src/libstd/io/option.rs (renamed from src/libstd/rt/io/option.rs)0
-rw-r--r--src/libstd/io/pipe.rs (renamed from src/libstd/rt/io/pipe.rs)6
-rw-r--r--src/libstd/io/process.rs (renamed from src/libstd/rt/io/process.rs)4
-rw-r--r--src/libstd/io/signal.rs (renamed from src/libstd/rt/io/signal.rs)11
-rw-r--r--src/libstd/io/stdio.rs (renamed from src/libstd/rt/io/stdio.rs)4
-rw-r--r--src/libstd/io/timer.rs (renamed from src/libstd/rt/io/timer.rs)6
-rw-r--r--src/libstd/lib.rs6
-rw-r--r--src/libstd/os.rs6
-rw-r--r--src/libstd/prelude.rs4
-rw-r--r--src/libstd/rand/os.rs2
-rw-r--r--src/libstd/rand/reader.rs6
-rw-r--r--src/libstd/repr.rs8
-rw-r--r--src/libstd/rt/logging.rs6
-rw-r--r--src/libstd/rt/mod.rs6
-rw-r--r--src/libstd/rt/rtio.rs24
-rw-r--r--src/libstd/rt/sched.rs2
-rw-r--r--src/libstd/rt/task.rs2
-rw-r--r--src/libstd/rt/test.rs2
-rw-r--r--src/libstd/rt/util.rs4
-rw-r--r--src/libstd/run.rs12
-rw-r--r--src/libstd/to_bytes.rs4
-rw-r--r--src/libsyntax/diagnostic.rs2
-rw-r--r--src/libsyntax/ext/expand.rs6
-rw-r--r--src/libsyntax/ext/source_util.rs4
-rw-r--r--src/libsyntax/parse/comments.rs2
-rw-r--r--src/libsyntax/parse/mod.rs10
-rw-r--r--src/libsyntax/print/pp.rs2
-rw-r--r--src/libsyntax/print/pprust.rs6
-rw-r--r--src/test/bench/core-std.rs4
-rw-r--r--src/test/bench/shootout-fasta.rs4
-rw-r--r--src/test/bench/shootout-k-nucleotide-pipes.rs10
-rw-r--r--src/test/bench/sudoku.rs6
-rw-r--r--src/test/run-pass/core-run-destroy.rs2
-rw-r--r--src/test/run-pass/deriving-encodable-decodable.rs4
-rw-r--r--src/test/run-pass/glob-std.rs2
-rw-r--r--src/test/run-pass/ifmt.rs8
-rw-r--r--src/test/run-pass/issue-2904.rs2
-rw-r--r--src/test/run-pass/issue-4333.rs2
-rw-r--r--src/test/run-pass/issue-8398.rs2
-rw-r--r--src/test/run-pass/rename-directory.rs4
-rw-r--r--src/test/run-pass/rtio-processes.rs6
-rw-r--r--src/test/run-pass/signal-exit-status.rs2
-rw-r--r--src/test/run-pass/stat.rs2
-rw-r--r--src/test/run-pass/tempfile.rs4
118 files changed, 343 insertions, 332 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs
index e464e0e687c..15bddfc8022 100644
--- a/src/compiletest/compiletest.rs
+++ b/src/compiletest/compiletest.rs
@@ -17,7 +17,7 @@ extern mod extra;
 
 use std::os;
 use std::rt;
-use std::rt::io::fs;
+use std::io::fs;
 
 use extra::getopts;
 use extra::getopts::groups::{optopt, optflag, reqopt};
diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs
index dcb0d2ef01d..6be92b12535 100644
--- a/src/compiletest/errors.rs
+++ b/src/compiletest/errors.rs
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::rt::io::buffered::BufferedReader;
-use std::rt::io::File;
+use std::io::buffered::BufferedReader;
+use std::io::File;
 
 pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
 
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs
index 5571e159ee3..c63436a2c55 100644
--- a/src/compiletest/header.rs
+++ b/src/compiletest/header.rs
@@ -103,8 +103,8 @@ pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
 }
 
 fn iter_header(testfile: &Path, it: &fn(&str) -> bool) -> bool {
-    use std::rt::io::buffered::BufferedReader;
-    use std::rt::io::File;
+    use std::io::buffered::BufferedReader;
+    use std::io::File;
 
     let mut rdr = BufferedReader::new(File::open(testfile).unwrap());
     loop {
diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs
index 32ee19badd2..e107c53018d 100644
--- a/src/compiletest/procsrv.rs
+++ b/src/compiletest/procsrv.rs
@@ -11,7 +11,7 @@
 use std::os;
 use std::run;
 use std::str;
-use std::rt::io::process::ProcessExit;
+use std::io::process::ProcessExit;
 
 #[cfg(target_os = "win32")]
 fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index ffd5e721d67..33bd6263209 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -8,30 +8,30 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use common::mode_run_pass;
-use common::mode_run_fail;
+use common::config;
 use common::mode_compile_fail;
 use common::mode_pretty;
-use common::config;
+use common::mode_run_fail;
+use common::mode_run_pass;
 use errors;
-use header::load_props;
 use header::TestProps;
+use header::load_props;
 use procsrv;
-use util;
 use util::logv;
+use util;
 
-use std::rt::io;
-use std::rt::io::fs;
-use std::rt::io::File;
-use std::rt::io::process;
-use std::rt::io::process::ProcessExit;
+use std::io::File;
+use std::io::fs;
+use std::io::net::ip::{Ipv4Addr, SocketAddr};
+use std::io::net::tcp;
+use std::io::process::ProcessExit;
+use std::io::process;
+use std::io::timer;
+use std::io;
 use std::os;
 use std::str;
-use std::vec;
-use std::rt::io::net::tcp;
-use std::rt::io::net::ip::{Ipv4Addr, SocketAddr};
 use std::task;
-use std::rt::io::timer;
+use std::vec;
 
 use extra::test::MetricMap;
 
diff --git a/src/etc/combine-tests.py b/src/etc/combine-tests.py
index dc5e11dabdf..0abe4dae606 100755
--- a/src/etc/combine-tests.py
+++ b/src/etc/combine-tests.py
@@ -56,8 +56,8 @@ d.write("#[feature(globs, managed_boxes)];\n")
 d.write("extern mod extra;\n")
 d.write("extern mod run_pass_stage2;\n")
 d.write("use run_pass_stage2::*;\n")
-d.write("use std::rt::io;\n");
-d.write("use std::rt::io::Writer;\n");
+d.write("use std::io;\n");
+d.write("use std::io::Writer;\n");
 d.write("fn main() {\n");
 d.write("    let mut out = io::stdout();\n");
 i = 0
diff --git a/src/libextra/ebml.rs b/src/libextra/ebml.rs
index f577ed55f97..c249a8c09f2 100644
--- a/src/libextra/ebml.rs
+++ b/src/libextra/ebml.rs
@@ -97,7 +97,7 @@ pub mod reader {
     use std::cast::transmute;
     use std::int;
     use std::option::{None, Option, Some};
-    use std::rt::io::extensions::u64_from_be_bytes;
+    use std::io::extensions::u64_from_be_bytes;
 
     // ebml reading
 
@@ -608,10 +608,10 @@ pub mod writer {
 
     use std::cast;
     use std::clone::Clone;
-    use std::rt::io;
-    use std::rt::io::{Writer, Seek};
-    use std::rt::io::mem::MemWriter;
-    use std::rt::io::extensions::u64_to_be_bytes;
+    use std::io;
+    use std::io::{Writer, Seek};
+    use std::io::mem::MemWriter;
+    use std::io::extensions::u64_to_be_bytes;
 
     // ebml writing
     pub struct Encoder {
@@ -961,8 +961,8 @@ mod tests {
     use serialize::Encodable;
     use serialize;
 
-    use std::rt::io::Decorator;
-    use std::rt::io::mem::MemWriter;
+    use std::io::Decorator;
+    use std::io::mem::MemWriter;
     use std::option::{None, Option, Some};
 
     #[test]
diff --git a/src/libextra/glob.rs b/src/libextra/glob.rs
index 1edef5ddbe1..d371d7bbdb3 100644
--- a/src/libextra/glob.rs
+++ b/src/libextra/glob.rs
@@ -24,8 +24,8 @@
  */
 
 use std::{os, path};
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 use std::path::is_sep;
 
 use sort;
diff --git a/src/libextra/json.rs b/src/libextra/json.rs
index 9f75d677136..7370dfafba9 100644
--- a/src/libextra/json.rs
+++ b/src/libextra/json.rs
@@ -20,9 +20,9 @@ use std::char;
 use std::cast::transmute;
 use std::f64;
 use std::hashmap::HashMap;
-use std::rt::io;
-use std::rt::io::Decorator;
-use std::rt::io::mem::MemWriter;
+use std::io;
+use std::io::Decorator;
+use std::io::mem::MemWriter;
 use std::num;
 use std::str;
 use std::to_str;
@@ -1311,7 +1311,7 @@ mod tests {
 
     use super::*;
 
-    use std::rt::io;
+    use std::io;
     use serialize::Decodable;
     use treemap::TreeMap;
 
@@ -1483,8 +1483,8 @@ mod tests {
     }
 
     fn with_str_writer(f: &fn(@mut io::Writer)) -> ~str {
-        use std::rt::io::mem::MemWriter;
-        use std::rt::io::Decorator;
+        use std::io::mem::MemWriter;
+        use std::io::Decorator;
         use std::str;
 
         let m = @mut MemWriter::new();
diff --git a/src/libextra/stats.rs b/src/libextra/stats.rs
index 497145ca7c9..44c399c89da 100644
--- a/src/libextra/stats.rs
+++ b/src/libextra/stats.rs
@@ -13,7 +13,7 @@
 use sort;
 use std::cmp;
 use std::hashmap;
-use std::rt::io;
+use std::io;
 use std::num;
 
 // NB: this can probably be rewritten in terms of num::Num
@@ -388,7 +388,7 @@ mod tests {
     use stats::Summary;
     use stats::write_5_number_summary;
     use stats::write_boxplot;
-    use std::rt::io;
+    use std::io;
     use std::str;
 
     fn check(samples: &[f64], summ: &Summary) {
@@ -942,8 +942,8 @@ mod tests {
     #[test]
     fn test_boxplot_nonpositive() {
         fn t(s: &Summary, expected: ~str) {
-            use std::rt::io::mem::MemWriter;
-            use std::rt::io::Decorator;
+            use std::io::mem::MemWriter;
+            use std::io::Decorator;
             let mut m = MemWriter::new();
             write_boxplot(&mut m as &mut io::Writer, s, 30);
             let out = str::from_utf8_owned(m.inner());
diff --git a/src/libextra/tempfile.rs b/src/libextra/tempfile.rs
index fbd65cab98c..5bcba295723 100644
--- a/src/libextra/tempfile.rs
+++ b/src/libextra/tempfile.rs
@@ -14,8 +14,8 @@
 use std::os;
 use std::rand::Rng;
 use std::rand;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 
 /// A wrapper for a path to temporary directory implementing automatic
 /// scope-pased deletion.
diff --git a/src/libextra/term.rs b/src/libextra/term.rs
index 22ce833ea24..05c6a366807 100644
--- a/src/libextra/term.rs
+++ b/src/libextra/term.rs
@@ -13,7 +13,7 @@
 #[allow(missing_doc)];
 
 
-use std::rt::io;
+use std::io;
 
 #[cfg(not(target_os = "win32"))] use std::os;
 #[cfg(not(target_os = "win32"))] use terminfo::*;
diff --git a/src/libextra/terminfo/parser/compiled.rs b/src/libextra/terminfo/parser/compiled.rs
index 04b30e5ef74..17ea165c7e5 100644
--- a/src/libextra/terminfo/parser/compiled.rs
+++ b/src/libextra/terminfo/parser/compiled.rs
@@ -15,7 +15,7 @@
 
 use std::{vec, str};
 use std::hashmap::HashMap;
-use std::rt::io;
+use std::io;
 use super::super::TermInfo;
 
 // These are the orders ncurses uses in its compiled format (as of 5.9). Not sure if portable.
diff --git a/src/libextra/terminfo/searcher.rs b/src/libextra/terminfo/searcher.rs
index 09ceae66bb1..3754849b3ea 100644
--- a/src/libextra/terminfo/searcher.rs
+++ b/src/libextra/terminfo/searcher.rs
@@ -13,8 +13,8 @@
 
 use std::{os, str};
 use std::os::getenv;
-use std::rt::io;
-use std::rt::io::File;
+use std::io;
+use std::io::File;
 
 /// Return path to database entry for `term`
 pub fn get_dbpath_for_term(term: &str) -> Option<~Path> {
diff --git a/src/libextra/test.rs b/src/libextra/test.rs
index 04f045c961f..14fee38dada 100644
--- a/src/libextra/test.rs
+++ b/src/libextra/test.rs
@@ -30,8 +30,8 @@ use treemap::TreeMap;
 
 use std::clone::Clone;
 use std::comm::{stream, SharedChan, GenericPort, GenericChan};
-use std::rt::io;
-use std::rt::io::File;
+use std::io;
+use std::io::File;
 use std::task;
 use std::to_str::ToStr;
 use std::f64;
@@ -655,9 +655,9 @@ pub fn run_tests_console(opts: &TestOpts,
 
 #[test]
 fn should_sort_failures_before_printing_them() {
-    use std::rt::io;
-    use std::rt::io::Decorator;
-    use std::rt::io::mem::MemWriter;
+    use std::io;
+    use std::io::Decorator;
+    use std::io::mem::MemWriter;
     use std::str;
     fn dummy() {}
 
diff --git a/src/libextra/time.rs b/src/libextra/time.rs
index aed42e8d7fe..901daba84ed 100644
--- a/src/libextra/time.rs
+++ b/src/libextra/time.rs
@@ -10,8 +10,8 @@
 
 #[allow(missing_doc)];
 
-use std::rt::io::Reader;
-use std::rt::io::mem::BufReader;
+use std::io::Reader;
+use std::io::mem::BufReader;
 use std::num;
 use std::str;
 
diff --git a/src/libextra/url.rs b/src/libextra/url.rs
index 8005acf6e6b..7570d26901c 100644
--- a/src/libextra/url.rs
+++ b/src/libextra/url.rs
@@ -12,8 +12,8 @@
 
 #[allow(missing_doc)];
 
-use std::rt::io::{Reader, Seek};
-use std::rt::io::mem::BufReader;
+use std::io::{Reader, Seek};
+use std::io::mem::BufReader;
 use std::cmp::Eq;
 use std::hashmap::HashMap;
 use std::to_bytes;
diff --git a/src/libextra/uuid.rs b/src/libextra/uuid.rs
index 54ce349a0b4..62a15a922fa 100644
--- a/src/libextra/uuid.rs
+++ b/src/libextra/uuid.rs
@@ -522,8 +522,8 @@ mod test {
     use std::str;
     use std::rand;
     use std::num::Zero;
-    use std::rt::io::Decorator;
-    use std::rt::io::mem::MemWriter;
+    use std::io::Decorator;
+    use std::io::mem::MemWriter;
 
     #[test]
     fn test_new_nil() {
diff --git a/src/libextra/workcache.rs b/src/libextra/workcache.rs
index eed37a426be..89e50f53ab4 100644
--- a/src/libextra/workcache.rs
+++ b/src/libextra/workcache.rs
@@ -18,9 +18,9 @@ use treemap::TreeMap;
 use std::cell::Cell;
 use std::comm::{PortOne, oneshot};
 use std::{str, task};
-use std::rt::io;
-use std::rt::io::{File, Decorator};
-use std::rt::io::mem::MemWriter;
+use std::io;
+use std::io::{File, Decorator};
+use std::io::mem::MemWriter;
 
 /**
 *
@@ -479,7 +479,7 @@ impl<'self, T:Send +
 #[test]
 fn test() {
     use std::{os, run};
-    use std::rt::io::fs;
+    use std::io::fs;
     use std::str::from_utf8_owned;
 
     // Create a path to a new file 'filename' in the directory in which
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
index 9b0a2c5fde8..01b257cd8b3 100644
--- a/src/librustc/back/link.rs
+++ b/src/librustc/back/link.rs
@@ -31,7 +31,7 @@ use std::ptr;
 use std::run;
 use std::str;
 use std::vec;
-use std::rt::io::fs;
+use std::io::fs;
 use syntax::abi;
 use syntax::ast;
 use syntax::ast_map::{path, path_mod, path_name, path_pretty_name};
@@ -968,7 +968,7 @@ pub fn link_binary(sess: Session,
 }
 
 fn is_writeable(p: &Path) -> bool {
-    use std::rt::io;
+    use std::io;
 
     !p.exists() ||
         (match io::result(|| p.stat()) {
diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs
index 880d79ac48a..f920b8debf1 100644
--- a/src/librustc/driver/driver.rs
+++ b/src/librustc/driver/driver.rs
@@ -26,9 +26,9 @@ use util::common::time;
 use util::ppaux;
 
 use std::hashmap::{HashMap,HashSet};
-use std::rt::io;
-use std::rt::io::fs;
-use std::rt::io::mem::MemReader;
+use std::io;
+use std::io::fs;
+use std::io::mem::MemReader;
 use std::os;
 use std::vec;
 use extra::getopts::groups::{optopt, optmulti, optflag, optflagopt};
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs
index 798418f52dc..f67de445603 100644
--- a/src/librustc/lib.rs
+++ b/src/librustc/lib.rs
@@ -34,8 +34,8 @@ use driver::session;
 use middle::lint;
 
 use std::comm;
-use std::rt::io;
-use std::rt::io::Reader;
+use std::io;
+use std::io::Reader;
 use std::num;
 use std::os;
 use std::result;
diff --git a/src/librustc/metadata/decoder.rs b/src/librustc/metadata/decoder.rs
index b63d9320bd6..0680968703f 100644
--- a/src/librustc/metadata/decoder.rs
+++ b/src/librustc/metadata/decoder.rs
@@ -27,8 +27,8 @@ use middle::astencode::vtable_decoder_helpers;
 
 use std::at_vec;
 use std::u64;
-use std::rt::io;
-use std::rt::io::extensions::u64_from_be_bytes;
+use std::io;
+use std::io::extensions::u64_from_be_bytes;
 use std::option;
 use std::str;
 use std::vec;
diff --git a/src/librustc/metadata/encoder.rs b/src/librustc/metadata/encoder.rs
index fe9ca6a16f0..be45bf81867 100644
--- a/src/librustc/metadata/encoder.rs
+++ b/src/librustc/metadata/encoder.rs
@@ -22,8 +22,8 @@ use middle::typeck;
 use middle;
 
 use std::hashmap::{HashMap, HashSet};
-use std::rt::io::{Writer, Seek, Decorator};
-use std::rt::io::mem::MemWriter;
+use std::io::{Writer, Seek, Decorator};
+use std::io::mem::MemWriter;
 use std::str;
 use std::vec;
 
diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs
index c9bd5eff4a7..237c50ab294 100644
--- a/src/librustc/metadata/filesearch.rs
+++ b/src/librustc/metadata/filesearch.rs
@@ -11,8 +11,8 @@
 
 use std::option;
 use std::os;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 use std::hashmap::HashSet;
 
 pub enum FileMatch { FileMatches, FileDoesntMatch }
diff --git a/src/librustc/metadata/loader.rs b/src/librustc/metadata/loader.rs
index 34eb387a3f5..391b8944600 100644
--- a/src/librustc/metadata/loader.rs
+++ b/src/librustc/metadata/loader.rs
@@ -25,7 +25,7 @@ use syntax::attr::AttrMetaMethods;
 
 use std::c_str::ToCStr;
 use std::cast;
-use std::rt::io;
+use std::io;
 use std::num;
 use std::option;
 use std::os::consts::{macos, freebsd, linux, android, win32};
diff --git a/src/librustc/metadata/tyencode.rs b/src/librustc/metadata/tyencode.rs
index d304db0935a..49afb29488d 100644
--- a/src/librustc/metadata/tyencode.rs
+++ b/src/librustc/metadata/tyencode.rs
@@ -11,9 +11,9 @@
 // Type encoding
 
 use std::hashmap::HashMap;
-use std::rt::io;
-use std::rt::io::{Decorator, Writer, Seek};
-use std::rt::io::mem::MemWriter;
+use std::io;
+use std::io::{Decorator, Writer, Seek};
+use std::io::mem::MemWriter;
 use std::str;
 use std::fmt;
 
diff --git a/src/librustc/middle/astencode.rs b/src/librustc/middle/astencode.rs
index 09c0951b9e3..97d46cd3a0b 100644
--- a/src/librustc/middle/astencode.rs
+++ b/src/librustc/middle/astencode.rs
@@ -38,7 +38,7 @@ use syntax;
 use std::at_vec;
 use std::libc;
 use std::cast;
-use std::rt::io::Seek;
+use std::io::Seek;
 
 use extra::ebml::reader;
 use extra::ebml;
@@ -1344,8 +1344,8 @@ fn mk_ctxt() -> @fake_ext_ctxt {
 
 #[cfg(test)]
 fn roundtrip(in_item: Option<@ast::item>) {
-    use std::rt::io::Decorator;
-    use std::rt::io::mem::MemWriter;
+    use std::io::Decorator;
+    use std::io::mem::MemWriter;
 
     let in_item = in_item.unwrap();
     let wr = @mut MemWriter::new();
diff --git a/src/librustc/middle/dataflow.rs b/src/librustc/middle/dataflow.rs
index 299aa65897e..6b46da06211 100644
--- a/src/librustc/middle/dataflow.rs
+++ b/src/librustc/middle/dataflow.rs
@@ -18,7 +18,7 @@
 
 
 use std::cast;
-use std::rt::io;
+use std::io;
 use std::uint;
 use std::vec;
 use std::hashmap::HashMap;
diff --git a/src/librustc/middle/liveness.rs b/src/librustc/middle/liveness.rs
index a370da2893a..05c154c5c8d 100644
--- a/src/librustc/middle/liveness.rs
+++ b/src/librustc/middle/liveness.rs
@@ -111,7 +111,7 @@ use middle::moves;
 
 use std::cast::transmute;
 use std::hashmap::HashMap;
-use std::rt::io;
+use std::io;
 use std::str;
 use std::to_str;
 use std::uint;
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 4c64feee384..ee2aaee240e 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -17,7 +17,7 @@
 
 use std::fmt;
 use std::local_data;
-use std::rt::io;
+use std::io;
 
 use syntax::ast;
 use syntax::ast_util;
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index 5f3ffd185e7..e4081df5c3c 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use std::fmt;
-use std::rt::io;
+use std::io;
 
 #[deriving(Clone)]
 pub struct Layout {
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index cb9ced6b19d..c07befea18f 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -24,7 +24,7 @@
 
 use std::fmt;
 use std::libc;
-use std::rt::io;
+use std::io;
 use std::vec;
 
 /// A unit struct which has the `fmt::Default` trait implemented. When
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 4b6092abb48..1b514f10af0 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -39,10 +39,10 @@ use std::comm;
 use std::fmt;
 use std::hashmap::{HashMap, HashSet};
 use std::local_data;
-use std::rt::io::buffered::BufferedWriter;
-use std::rt::io;
-use std::rt::io::fs;
-use std::rt::io::File;
+use std::io::buffered::BufferedWriter;
+use std::io;
+use std::io::fs;
+use std::io::File;
 use std::os;
 use std::str;
 use std::task;
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index 96624ec5b6c..12a79aa545e 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -26,10 +26,10 @@ extern mod extra;
 
 use std::cell::Cell;
 use std::local_data;
-use std::rt::io;
-use std::rt::io::File;
-use std::rt::io::mem::MemWriter;
-use std::rt::io::Decorator;
+use std::io;
+use std::io::File;
+use std::io::mem::MemWriter;
+use std::io::Decorator;
 use std::str;
 use extra::getopts;
 use extra::getopts::groups;
diff --git a/src/librustpkg/conditions.rs b/src/librustpkg/conditions.rs
index 6831b6ec312..02817fd91e5 100644
--- a/src/librustpkg/conditions.rs
+++ b/src/librustpkg/conditions.rs
@@ -10,10 +10,10 @@
 
 // Useful conditions
 
-pub use std::path::Path;
 pub use package_id::PkgId;
-pub use std::rt::io::FileStat;
-pub use std::rt::io::process::ProcessExit;
+pub use std::io::FileStat;
+pub use std::io::process::ProcessExit;
+pub use std::path::Path;
 
 condition! {
     pub bad_path: (Path, ~str) -> Path;
diff --git a/src/librustpkg/installed_packages.rs b/src/librustpkg/installed_packages.rs
index 576d5abe8bd..23fa1bdebd5 100644
--- a/src/librustpkg/installed_packages.rs
+++ b/src/librustpkg/installed_packages.rs
@@ -13,8 +13,8 @@
 use rustc::metadata::filesearch::rust_path;
 use path_util::*;
 use std::os;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 
 pub fn list_installed_packages(f: &fn(&PkgId) -> bool) -> bool  {
     let workspaces = rust_path();
diff --git a/src/librustpkg/lib.rs b/src/librustpkg/lib.rs
index 94978b4a7e1..5e9d06f533b 100644
--- a/src/librustpkg/lib.rs
+++ b/src/librustpkg/lib.rs
@@ -26,10 +26,10 @@ extern mod rustc;
 extern mod syntax;
 
 use std::{os, result, run, str, task};
-use std::rt::io::process;
+use std::io::process;
 use std::hashmap::HashSet;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 pub use std::path::Path;
 
 use extra::workcache;
diff --git a/src/librustpkg/messages.rs b/src/librustpkg/messages.rs
index 79c8ff794ab..ae9e0e62661 100644
--- a/src/librustpkg/messages.rs
+++ b/src/librustpkg/messages.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use extra::term;
-use std::rt::io;
+use std::io;
 
 pub fn note(msg: &str) {
     pretty_message(msg, "note: ", term::color::GREEN,
diff --git a/src/librustpkg/package_source.rs b/src/librustpkg/package_source.rs
index 3023f3ed60c..f27ca9e0a18 100644
--- a/src/librustpkg/package_source.rs
+++ b/src/librustpkg/package_source.rs
@@ -12,8 +12,8 @@ extern mod extra;
 
 use target::*;
 use package_id::PkgId;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 use std::os;
 use context::*;
 use crate::Crate;
diff --git a/src/librustpkg/path_util.rs b/src/librustpkg/path_util.rs
index 56cf073cbdf..bce41e5a49f 100644
--- a/src/librustpkg/path_util.rs
+++ b/src/librustpkg/path_util.rs
@@ -19,8 +19,8 @@ use rustc::driver::driver::host_triple;
 use std::libc;
 use std::libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR};
 use std::os;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 use messages::*;
 
 pub fn default_workspace() -> Path {
diff --git a/src/librustpkg/source_control.rs b/src/librustpkg/source_control.rs
index 6f484a7be5d..702a849e4ad 100644
--- a/src/librustpkg/source_control.rs
+++ b/src/librustpkg/source_control.rs
@@ -12,7 +12,7 @@
 
 use std::{run, str};
 use std::run::{ProcessOutput, ProcessOptions, Process};
-use std::rt::io::fs;
+use std::io::fs;
 use extra::tempfile::TempDir;
 use version::*;
 use path_util::chmod_read_only;
diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs
index 99910242582..02d2f909509 100644
--- a/src/librustpkg/tests.rs
+++ b/src/librustpkg/tests.rs
@@ -12,11 +12,11 @@
 
 use context::{BuildContext, Context, RustcFlags};
 use std::{os, run, str, task};
-use std::rt::io;
-use std::rt::io::fs;
-use std::rt::io::File;
-use std::rt::io::process;
-use std::rt::io::process::ProcessExit;
+use std::io;
+use std::io::fs;
+use std::io::File;
+use std::io::process;
+use std::io::process::ProcessExit;
 use extra::arc::Arc;
 use extra::arc::RWArc;
 use extra::tempfile::TempDir;
diff --git a/src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs b/src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
index 1c3bf897bec..4a107de55a5 100644
--- a/src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
+++ b/src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
@@ -12,7 +12,7 @@ extern mod rustpkg;
 extern mod rustc;
 
 use std::os;
-use std::rt::io::File;
+use std::io::File;
 use rustpkg::api;
 use rustpkg::version::NoVersion;
 
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index ec7771c2ab5..df94e166dc2 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -10,8 +10,8 @@
 
 use std::libc;
 use std::os;
-use std::rt::io;
-use std::rt::io::fs;
+use std::io;
+use std::io::fs;
 use extra::workcache;
 use rustc::driver::{driver, session};
 use extra::getopts::groups::getopts;
diff --git a/src/librustpkg/workcache_support.rs b/src/librustpkg/workcache_support.rs
index d8b35f2c033..42f0aec6b74 100644
--- a/src/librustpkg/workcache_support.rs
+++ b/src/librustpkg/workcache_support.rs
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::rt::io;
-use std::rt::io::File;
+use std::io;
+use std::io::File;
 use extra::workcache;
 use sha1::{Digest, Sha1};
 
diff --git a/src/librustuv/addrinfo.rs b/src/librustuv/addrinfo.rs
index 2808915907b..49782c62838 100644
--- a/src/librustuv/addrinfo.rs
+++ b/src/librustuv/addrinfo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use ai = std::rt::io::net::addrinfo;
+use ai = std::io::net::addrinfo;
 use std::libc::c_int;
 use std::ptr::null;
 use std::rt::BlockedTask;
@@ -186,7 +186,7 @@ pub fn accum_addrinfo(addr: &Addrinfo) -> ~[ai::Info] {
 
 #[cfg(test)]
 mod test {
-    use std::rt::io::net::ip::{SocketAddr, Ipv4Addr};
+    use std::io::net::ip::{SocketAddr, Ipv4Addr};
     use super::*;
     use super::super::local_loop;
 
diff --git a/src/librustuv/file.rs b/src/librustuv/file.rs
index 67fa424af1a..984b9ee53c2 100644
--- a/src/librustuv/file.rs
+++ b/src/librustuv/file.rs
@@ -15,8 +15,8 @@ use std::cast;
 use std::libc::{c_int, c_char, c_void, size_t};
 use std::libc;
 use std::rt::BlockedTask;
-use std::rt::io::{FileStat, IoError};
-use std::rt::io;
+use std::io::{FileStat, IoError};
+use std::io;
 use std::rt::local::Local;
 use std::rt::rtio;
 use std::rt::sched::{Scheduler, SchedHandle};
@@ -450,7 +450,7 @@ impl rtio::RtioFileStream for FileWatcher {
 mod test {
     use std::libc::c_int;
     use std::libc::{O_CREAT, O_RDWR, O_RDONLY, S_IWUSR, S_IRUSR};
-    use std::rt::io;
+    use std::io;
     use std::str;
     use std::vec;
     use super::*;
diff --git a/src/librustuv/lib.rs b/src/librustuv/lib.rs
index 599cd01c460..e8ce8113033 100644
--- a/src/librustuv/lib.rs
+++ b/src/librustuv/lib.rs
@@ -61,7 +61,7 @@ use std::task;
 use std::unstable::finally::Finally;
 use std::vec;
 
-use std::rt::io::IoError;
+use std::io::IoError;
 
 pub use self::async::AsyncWatcher;
 pub use self::file::{FsRequest, FileWatcher};
@@ -327,7 +327,7 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
     unsafe {
         // Importing error constants
         use uvll::*;
-        use std::rt::io::*;
+        use std::io::*;
 
         // uv error descriptions are static
         let c_desc = uvll::uv_strerror(*uverr);
diff --git a/src/librustuv/macros.rs b/src/librustuv/macros.rs
index 90b8263da79..01f2bfd648c 100644
--- a/src/librustuv/macros.rs
+++ b/src/librustuv/macros.rs
@@ -33,8 +33,8 @@ macro_rules! get_handle_to_current_scheduler(
 )
 
 pub fn dumb_println(args: &fmt::Arguments) {
-    use std::rt::io::native::stdio::stderr;
-    use std::rt::io::Writer;
+    use std::io::native::stdio::stderr;
+    use std::io::Writer;
 
     let mut out = stderr();
     fmt::writeln(&mut out as &mut Writer, args);
diff --git a/src/librustuv/net.rs b/src/librustuv/net.rs
index 8e649bbc17a..dc6fbcec3f2 100644
--- a/src/librustuv/net.rs
+++ b/src/librustuv/net.rs
@@ -13,8 +13,8 @@ use std::libc;
 use std::libc::{size_t, ssize_t, c_int, c_void, c_uint, c_char};
 use std::ptr;
 use std::rt::BlockedTask;
-use std::rt::io::IoError;
-use std::rt::io::net::ip::{Ipv4Addr, Ipv6Addr, SocketAddr, IpAddr};
+use std::io::IoError;
+use std::io::net::ip::{Ipv4Addr, Ipv6Addr, SocketAddr, IpAddr};
 use std::rt::local::Local;
 use std::rt::rtio;
 use std::rt::sched::{Scheduler, SchedHandle};
diff --git a/src/librustuv/pipe.rs b/src/librustuv/pipe.rs
index 1b0f352dc4d..0c1e53082f7 100644
--- a/src/librustuv/pipe.rs
+++ b/src/librustuv/pipe.rs
@@ -11,7 +11,7 @@
 use std::c_str::CString;
 use std::libc;
 use std::rt::BlockedTask;
-use std::rt::io::IoError;
+use std::io::IoError;
 use std::rt::local::Local;
 use std::rt::rtio::{RtioPipe, RtioUnixListener, RtioUnixAcceptor};
 use std::rt::sched::{Scheduler, SchedHandle};
diff --git a/src/librustuv/process.rs b/src/librustuv/process.rs
index e49930c1fc9..c537ee582cb 100644
--- a/src/librustuv/process.rs
+++ b/src/librustuv/process.rs
@@ -12,8 +12,8 @@ use std::libc::c_int;
 use std::libc;
 use std::ptr;
 use std::rt::BlockedTask;
-use std::rt::io::IoError;
-use std::rt::io::process::*;
+use std::io::IoError;
+use std::io::process::*;
 use std::rt::local::Local;
 use std::rt::rtio::RtioProcess;
 use std::rt::sched::{Scheduler, SchedHandle};
diff --git a/src/librustuv/signal.rs b/src/librustuv/signal.rs
index da2e1d8837c..10c2bc3be05 100644
--- a/src/librustuv/signal.rs
+++ b/src/librustuv/signal.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use std::libc::c_int;
-use std::rt::io::signal::Signum;
+use std::io::signal::Signum;
 use std::rt::sched::{SchedHandle, Scheduler};
 use std::comm::{SharedChan, SendDeferred};
 use std::rt::local::Local;
@@ -78,7 +78,7 @@ mod test {
     use super::*;
     use std::cell::Cell;
     use super::super::local_loop;
-    use std::rt::io::signal;
+    use std::io::signal;
     use std::comm::{SharedChan, stream};
 
     #[test]
diff --git a/src/librustuv/tty.rs b/src/librustuv/tty.rs
index d3f001f3931..c7c09f3480e 100644
--- a/src/librustuv/tty.rs
+++ b/src/librustuv/tty.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use std::libc;
-use std::rt::io::IoError;
+use std::io::IoError;
 use std::rt::local::Local;
 use std::rt::rtio::RtioTTY;
 use std::rt::sched::{Scheduler, SchedHandle};
diff --git a/src/librustuv/uvio.rs b/src/librustuv/uvio.rs
index 75ec5f26b33..6f9dbc8ec90 100644
--- a/src/librustuv/uvio.rs
+++ b/src/librustuv/uvio.rs
@@ -13,21 +13,21 @@ use std::comm::SharedChan;
 use std::libc::c_int;
 use std::libc;
 use std::path::Path;
-use std::rt::io::IoError;
-use std::rt::io::net::ip::SocketAddr;
-use std::rt::io::process::ProcessConfig;
-use std::rt::io;
+use std::io::IoError;
+use std::io::net::ip::SocketAddr;
+use std::io::process::ProcessConfig;
+use std::io;
 use std::rt::local::Local;
 use std::rt::rtio::*;
 use std::rt::sched::{Scheduler, SchedHandle};
 use std::rt::task::Task;
 use std::libc::{O_CREAT, O_APPEND, O_TRUNC, O_RDWR, O_RDONLY, O_WRONLY,
                 S_IRUSR, S_IWUSR};
-use std::rt::io::{FileMode, FileAccess, Open, Append, Truncate, Read, Write,
+use std::io::{FileMode, FileAccess, Open, Append, Truncate, Read, Write,
                   ReadWrite, FileStat};
-use std::rt::io::signal::Signum;
+use std::io::signal::Signum;
 use std::util;
-use ai = std::rt::io::net::addrinfo;
+use ai = std::io::net::addrinfo;
 
 #[cfg(test)] use std::unstable::run_in_bare_thread;
 
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs
index 9d5c9c1a5cd..a48b8578116 100644
--- a/src/libstd/fmt/mod.rs
+++ b/src/libstd/fmt/mod.rs
@@ -220,7 +220,7 @@ currently implemented are:
 
 ```rust
 format!      // described above
-write!       // first argument is a &mut rt::io::Writer, the destination
+write!       // first argument is a &mut io::Writer, the destination
 writeln!     // same as write but appends a newline
 print!       // the format string is printed to the standard output
 println!     // same as print but appends a newline
@@ -236,7 +236,7 @@ strings and instead directly write the output. Under the hood, this function is
 actually invoking the `write` function defined in this module. Example usage is:
 
 ```rust
-use std::rt::io;
+use std::io;
 
 let mut w = io::mem::MemWriter::new();
 write!(&mut w as &mut io::Writer, "Hello {}!", "world");
@@ -462,9 +462,9 @@ use prelude::*;
 
 use cast;
 use char::Char;
-use rt::io::Decorator;
-use rt::io::mem::MemWriter;
-use rt::io;
+use io::Decorator;
+use io::mem::MemWriter;
+use io;
 use str;
 use repr;
 use util;
diff --git a/src/libstd/hash.rs b/src/libstd/hash.rs
index 6f6e847f569..c9a85e6d25e 100644
--- a/src/libstd/hash.rs
+++ b/src/libstd/hash.rs
@@ -29,7 +29,7 @@
 use container::Container;
 use iter::Iterator;
 use option::{Some, None};
-use rt::io::Writer;
+use io::Writer;
 use str::OwnedStr;
 use to_bytes::IterBytes;
 use vec::ImmutableVector;
diff --git a/src/libstd/rt/io/buffered.rs b/src/libstd/io/buffered.rs
index 8afb7183d77..4932f392090 100644
--- a/src/libstd/rt/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -349,6 +349,7 @@ impl<S: Stream> Decorator<S> for BufferedStream<S> {
 mod test {
     use prelude::*;
     use super::*;
+    use io;
     use super::super::mem::{MemReader, MemWriter};
 
     #[test]
@@ -427,11 +428,11 @@ mod test {
         use rt;
         struct S;
 
-        impl rt::io::Writer for S {
+        impl io::Writer for S {
             fn write(&mut self, _: &[u8]) {}
         }
 
-        impl rt::io::Reader for S {
+        impl io::Reader for S {
             fn read(&mut self, _: &mut [u8]) -> Option<uint> { None }
             fn eof(&mut self) -> bool { true }
         }
diff --git a/src/libstd/rt/io/comm_adapters.rs b/src/libstd/io/comm_adapters.rs
index 98dbec27fb9..98dbec27fb9 100644
--- a/src/libstd/rt/io/comm_adapters.rs
+++ b/src/libstd/io/comm_adapters.rs
diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/io/extensions.rs
index 261792977b3..ebda2618dcf 100644
--- a/src/libstd/rt/io/extensions.rs
+++ b/src/libstd/io/extensions.rs
@@ -15,7 +15,7 @@
 
 use iter::Iterator;
 use option::Option;
-use rt::io::{Reader, Decorator};
+use io::{Reader, Decorator};
 
 /// An iterator that reads a single byte on each iteration,
 /// until `.read_byte()` returns `None`.
@@ -139,8 +139,9 @@ pub fn u64_from_be_bytes(data: &[u8],
 #[cfg(test)]
 mod test {
     use option::{None, Option, Some};
-    use rt::io::mem::{MemReader, MemWriter};
-    use rt::io::{Reader, io_error, placeholder_error};
+    use io::mem::{MemReader, MemWriter};
+    use io::{Reader, io_error, placeholder_error};
+    use vec::ImmutableVector;
 
     struct InitialZeroByteReader {
         count: int,
diff --git a/src/libstd/rt/io/flate.rs b/src/libstd/io/flate.rs
index 8a5aa171eb8..8a5aa171eb8 100644
--- a/src/libstd/rt/io/flate.rs
+++ b/src/libstd/io/flate.rs
diff --git a/src/libstd/rt/io/fs.rs b/src/libstd/io/fs.rs
index 06c07308cf6..d5514eb14d3 100644
--- a/src/libstd/rt/io/fs.rs
+++ b/src/libstd/io/fs.rs
@@ -17,7 +17,7 @@ At the top-level of the module are a set of freestanding functions, associated
 with various filesystem operations. They all operate on a `Path` object.
 
 All operations in this module, including those as part of `File` et al
-block the task during execution. Most will raise `std::rt::io::io_error`
+block the task during execution. Most will raise `std::io::io_error`
 conditions in the event of failure.
 
 Also included in this module is an implementation block on the `Path` object
@@ -27,7 +27,7 @@ particular bits of it, etc.
 
 # Example
 
-    use std::rt::io::{File, fs};
+    use std::io::{File, fs};
 
     let path = Path::new("foo.txt");
 
@@ -46,17 +46,18 @@ particular bits of it, etc.
 */
 
 use c_str::ToCStr;
+use clone::Clone;
 use iter::Iterator;
 use super::{Reader, Writer, Seek};
 use super::{SeekStyle, Read, Write, Open, IoError, Truncate,
             FileMode, FileAccess, FileStat, io_error, FilePermission};
 use rt::rtio::{RtioFileStream, IoFactory, with_local_io};
-use rt::io;
+use io;
 use option::{Some, None, Option};
 use result::{Ok, Err, Result};
 use path;
 use path::{Path, GenericPath};
-use vec::OwnedVector;
+use vec::{OwnedVector, ImmutableVector};
 
 /// Unconstrained file access type that exposes read and write operations
 ///
@@ -92,7 +93,7 @@ impl File {
     ///
     /// # Example
     ///
-    ///     use std::rt::io::{File, io_error, Open, ReadWrite};
+    ///     use std::io::{File, io_error, Open, ReadWrite};
     ///
     ///     let p = Path::new("/some/file/path.txt");
     ///
@@ -111,7 +112,7 @@ impl File {
     ///
     /// `FileMode` and `FileAccess` provide information about the permissions
     /// context in which a given stream is created. More information about them
-    /// can be found in `std::rt::io`'s docs. If a file is opened with `Write`
+    /// can be found in `std::io`'s docs. If a file is opened with `Write`
     /// or `ReadWrite` access, then it will be created it it does not already
     /// exist.
     ///
@@ -154,7 +155,7 @@ impl File {
     ///
     /// # Example
     ///
-    ///     use std::rt::io::File;
+    ///     use std::io::File;
     ///
     ///     let contents = File::open(&Path::new("foo.txt")).read_to_end();
     pub fn open(path: &Path) -> Option<File> {
@@ -169,7 +170,7 @@ impl File {
     ///
     /// # Example
     ///
-    ///     use std::rt::io::File;
+    ///     use std::io::File;
     ///
     ///     let mut f = File::create(&Path::new("foo.txt"));
     ///     f.write(bytes!("This is a sample file"));
@@ -226,7 +227,7 @@ impl File {
 ///
 /// # Example
 ///
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     let p = Path::new("/some/file/path.txt");
 ///     fs::unlink(&p);
@@ -256,8 +257,8 @@ pub fn unlink(path: &Path) {
 ///
 /// # Example
 ///
-///     use std::rt::io;
-///     use std::rt::io::fs;
+///     use std::io;
+///     use std::io::fs;
 ///
 ///     let p = Path::new("/some/file/path.txt");
 ///     match io::result(|| fs::stat(&p)) {
@@ -318,7 +319,7 @@ pub fn lstat(path: &Path) -> FileStat {
 ///
 /// # Example
 ///
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     fs::rename(&Path::new("foo"), &Path::new("bar"));
 ///     // Oh boy, nothing was raised!
@@ -342,7 +343,7 @@ pub fn rename(from: &Path, to: &Path) {
 ///
 /// # Example
 ///
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     fs::copy(&Path::new("foo.txt"), &Path::new("bar.txt"));
 ///     // Oh boy, nothing was raised!
@@ -388,8 +389,8 @@ pub fn copy(from: &Path, to: &Path) {
 ///
 /// # Example
 ///
-///     use std::rt::io;
-///     use std::rt::io::fs;
+///     use std::io;
+///     use std::io::fs;
 ///
 ///     fs::chmod(&Path::new("file.txt"), io::UserFile);
 ///     fs::chmod(&Path::new("file.txt"), io::UserRead | io::UserWrite);
@@ -453,7 +454,7 @@ pub fn readlink(path: &Path) -> Option<Path> {
 /// # Example
 ///
 ///     use std::libc::S_IRWXU;
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     let p = Path::new("/some/dir");
 ///     fs::mkdir(&p, S_IRWXU as int);
@@ -474,7 +475,7 @@ pub fn mkdir(path: &Path, mode: FilePermission) {
 ///
 /// # Example
 ///
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     let p = Path::new("/some/dir");
 ///     fs::rmdir(&p);
@@ -495,7 +496,7 @@ pub fn rmdir(path: &Path) {
 ///
 /// # Example
 ///
-///     use std::rt::io::fs;
+///     use std::io::fs;
 ///
 ///     // one possible implementation of fs::walk_dir only visiting files
 ///     fn visit_dirs(dir: &Path, cb: &fn(&Path)) {
@@ -716,8 +717,8 @@ impl path::Path {
 #[cfg(test)]
 mod test {
     use prelude::*;
-    use rt::io::{SeekSet, SeekCur, SeekEnd, io_error, Read, Open, ReadWrite};
-    use rt::io;
+    use io::{SeekSet, SeekCur, SeekEnd, io_error, Read, Open, ReadWrite};
+    use io;
     use str;
     use super::{File, rmdir, mkdir, readdir, rmdir_recursive, mkdir_recursive,
                 copy, unlink, stat, symlink, link, readlink, chmod,
diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/io/mem.rs
index 6803637d7cb..e754d9be85e 100644
--- a/src/libstd/rt/io/mem.rs
+++ b/src/libstd/io/mem.rs
@@ -226,7 +226,7 @@ pub fn with_mem_writer(writeFn:&fn(&mut MemWriter)) -> ~[u8] {
 mod test {
     use prelude::*;
     use super::*;
-    use rt::io::*;
+    use io::*;
 
     #[test]
     fn test_mem_writer() {
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/io/mod.rs
index ce9504a5b43..8858d0a14ad 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -19,8 +19,6 @@ file, TCP, UDP, Unix domain sockets.
 Readers and Writers may be composed to add capabilities like string
 parsing, encoding, and compression.
 
-This will likely live in std::io, not std::rt::io.
-
 # Examples
 
 Some examples of obvious things you might want to do
@@ -240,16 +238,20 @@ Out of scope
 
 */
 
+#[allow(missing_doc)];
+
 use cast;
+use container::Container;
 use int;
-use path::Path;
-use str::{StrSlice, OwnedStr};
+use iter::Iterator;
 use option::{Option, Some, None};
+use path::Path;
 use result::{Ok, Err, Result};
-use iter::Iterator;
+use str::{StrSlice, OwnedStr};
 use to_str::ToStr;
 use uint;
 use unstable::finally::Finally;
+use vec::{OwnedVector, MutableVector};
 use vec;
 
 // Reexports
diff --git a/src/libstd/rt/io/native/file.rs b/src/libstd/io/native/file.rs
index 69d1159bf91..0f1a64edb60 100644
--- a/src/libstd/rt/io/native/file.rs
+++ b/src/libstd/io/native/file.rs
@@ -229,7 +229,7 @@ mod tests {
     use libc;
     use os;
     use prelude::*;
-    use rt::io::{io_error, SeekSet};
+    use io::{io_error, SeekSet};
     use super::*;
 
     #[ignore(cfg(target_os = "freebsd"))] // hmm, maybe pipes have a tiny buffer
@@ -714,8 +714,8 @@ mod old_os {
 
     #[test]
     fn test_path_is_dir() {
-        use rt::io::fs::{mkdir_recursive};
-        use rt::io::{File, UserRWX};
+        use io::fs::{mkdir_recursive};
+        use io::{File, UserRWX};
 
         assert!((path_is_dir(&Path::new("."))));
         assert!((!path_is_dir(&Path::new("test/stdtest/fs.rs"))));
@@ -742,8 +742,8 @@ mod old_os {
 
     #[test]
     fn test_path_exists() {
-        use rt::io::fs::mkdir_recursive;
-        use rt::io::UserRWX;
+        use io::fs::mkdir_recursive;
+        use io::UserRWX;
 
         assert!((path_exists(&Path::new("."))));
         assert!((!path_exists(&Path::new(
diff --git a/src/libstd/rt/io/native/process.rs b/src/libstd/io/native/process.rs
index 9bf0ed63e8c..de03ac1c07d 100644
--- a/src/libstd/rt/io/native/process.rs
+++ b/src/libstd/io/native/process.rs
@@ -14,7 +14,7 @@ use libc;
 use os;
 use prelude::*;
 use ptr;
-use rt::io;
+use io;
 use super::file;
 
 /**
diff --git a/src/libstd/rt/io/native/stdio.rs b/src/libstd/io/native/stdio.rs
index ddfbb9a8f8c..68748ab49a3 100644
--- a/src/libstd/rt/io/native/stdio.rs
+++ b/src/libstd/io/native/stdio.rs
@@ -10,7 +10,7 @@
 
 use libc;
 use option::Option;
-use rt::io::{Reader, Writer};
+use io::{Reader, Writer};
 use super::file;
 
 /// Creates a new handle to the stdin of this process
diff --git a/src/libstd/rt/io/net/addrinfo.rs b/src/libstd/io/net/addrinfo.rs
index 684a6429775..7e2d1fc5e83 100644
--- a/src/libstd/rt/io/net/addrinfo.rs
+++ b/src/libstd/io/net/addrinfo.rs
@@ -19,9 +19,10 @@ getaddrinfo()
 
 use option::{Option, Some, None};
 use result::{Ok, Err};
-use rt::io::{io_error};
-use rt::io::net::ip::{SocketAddr, IpAddr};
+use io::{io_error};
+use io::net::ip::{SocketAddr, IpAddr};
 use rt::rtio::{IoFactory, with_local_io};
+use vec::ImmutableVector;
 
 /// Hints to the types of sockets that are desired when looking up hosts
 pub enum SocketType {
@@ -110,7 +111,7 @@ fn lookup(hostname: Option<&str>, servname: Option<&str>,
 #[cfg(test)]
 mod test {
     use option::Some;
-    use rt::io::net::ip::Ipv4Addr;
+    use io::net::ip::Ipv4Addr;
     use super::*;
 
     #[test]
diff --git a/src/libstd/rt/io/net/ip.rs b/src/libstd/io/net/ip.rs
index f72d2e1f19b..07240a4a509 100644
--- a/src/libstd/rt/io/net/ip.rs
+++ b/src/libstd/io/net/ip.rs
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use vec::MutableCloneableVector;
-use to_str::ToStr;
+use container::Container;
 use from_str::FromStr;
 use option::{Option, None, Some};
-
+use to_str::ToStr;
+use vec::{MutableCloneableVector, ImmutableVector};
 
 pub type Port = u16;
 
diff --git a/src/libstd/rt/io/net/mod.rs b/src/libstd/io/net/mod.rs
index cf109167089..cf109167089 100644
--- a/src/libstd/rt/io/net/mod.rs
+++ b/src/libstd/io/net/mod.rs
diff --git a/src/libstd/rt/io/net/tcp.rs b/src/libstd/io/net/tcp.rs
index 493ed6aba87..a59d652d739 100644
--- a/src/libstd/rt/io/net/tcp.rs
+++ b/src/libstd/io/net/tcp.rs
@@ -10,9 +10,9 @@
 
 use option::{Option, Some, None};
 use result::{Ok, Err};
-use rt::io::net::ip::SocketAddr;
-use rt::io::{Reader, Writer, Listener, Acceptor};
-use rt::io::{io_error, EndOfFile};
+use io::net::ip::SocketAddr;
+use io::{Reader, Writer, Listener, Acceptor};
+use io::{io_error, EndOfFile};
 use rt::rtio::{IoFactory, with_local_io,
                RtioSocket, RtioTcpListener, RtioTcpAcceptor, RtioTcpStream};
 
@@ -41,7 +41,7 @@ impl TcpStream {
         match self.obj.peer_name() {
             Ok(pn) => Some(pn),
             Err(ioerr) => {
-                rtdebug!("failed to get peer name: {:?}", ioerr);
+                debug!("failed to get peer name: {:?}", ioerr);
                 io_error::cond.raise(ioerr);
                 None
             }
@@ -52,7 +52,7 @@ impl TcpStream {
         match self.obj.socket_name() {
             Ok(sn) => Some(sn),
             Err(ioerr) => {
-                rtdebug!("failed to get socket name: {:?}", ioerr);
+                debug!("failed to get socket name: {:?}", ioerr);
                 io_error::cond.raise(ioerr);
                 None
             }
@@ -107,7 +107,7 @@ impl TcpListener {
         match self.obj.socket_name() {
             Ok(sn) => Some(sn),
             Err(ioerr) => {
-                rtdebug!("failed to get socket name: {:?}", ioerr);
+                debug!("failed to get socket name: {:?}", ioerr);
                 io_error::cond.raise(ioerr);
                 None
             }
@@ -148,8 +148,8 @@ mod test {
     use super::*;
     use cell::Cell;
     use rt::test::*;
-    use rt::io::net::ip::{Ipv4Addr, SocketAddr};
-    use rt::io::*;
+    use io::net::ip::{Ipv4Addr, SocketAddr};
+    use io::*;
     use prelude::*;
     use rt::comm::oneshot;
 
@@ -514,7 +514,7 @@ mod test {
                         let mut buf = [0];
                         stream.read(buf);
                         assert!(buf[0] == i as u8);
-                        rtdebug!("read");
+                        debug!("read");
                     }
                 }
             }
@@ -526,11 +526,11 @@ mod test {
                 if i == MAX { return }
 
                 do spawntask {
-                    rtdebug!("connecting");
+                    debug!("connecting");
                     let mut stream = TcpStream::connect(addr);
                     // Connect again before writing
                     connect(i + 1, addr);
-                    rtdebug!("writing");
+                    debug!("writing");
                     stream.write([i as u8]);
                 }
             }
@@ -556,7 +556,7 @@ mod test {
                         let mut buf = [0];
                         stream.read(buf);
                         assert!(buf[0] == i as u8);
-                        rtdebug!("read");
+                        debug!("read");
                     }
                 }
             }
@@ -568,11 +568,11 @@ mod test {
                 if i == MAX { return }
 
                 do spawntask {
-                    rtdebug!("connecting");
+                    debug!("connecting");
                     let mut stream = TcpStream::connect(addr);
                     // Connect again before writing
                     connect(i + 1, addr);
-                    rtdebug!("writing");
+                    debug!("writing");
                     stream.write([i as u8]);
                 }
             }
@@ -598,7 +598,7 @@ mod test {
                         let mut buf = [0];
                         stream.read(buf);
                         assert!(buf[0] == 99);
-                        rtdebug!("read");
+                        debug!("read");
                     }
                 }
             }
@@ -610,11 +610,11 @@ mod test {
                 if i == MAX { return }
 
                 do spawntask_later {
-                    rtdebug!("connecting");
+                    debug!("connecting");
                     let mut stream = TcpStream::connect(addr);
                     // Connect again before writing
                     connect(i + 1, addr);
-                    rtdebug!("writing");
+                    debug!("writing");
                     stream.write([99]);
                 }
             }
@@ -639,7 +639,7 @@ mod test {
                         let mut buf = [0];
                         stream.read(buf);
                         assert!(buf[0] == 99);
-                        rtdebug!("read");
+                        debug!("read");
                     }
                 }
             }
@@ -651,11 +651,11 @@ mod test {
                 if i == MAX { return }
 
                 do spawntask_later {
-                    rtdebug!("connecting");
+                    debug!("connecting");
                     let mut stream = TcpStream::connect(addr);
                     // Connect again before writing
                     connect(i + 1, addr);
-                    rtdebug!("writing");
+                    debug!("writing");
                     stream.write([99]);
                 }
             }
diff --git a/src/libstd/rt/io/net/udp.rs b/src/libstd/io/net/udp.rs
index f9cf8f5f9ae..1a2245ac442 100644
--- a/src/libstd/rt/io/net/udp.rs
+++ b/src/libstd/io/net/udp.rs
@@ -10,9 +10,9 @@
 
 use option::{Option, Some, None};
 use result::{Ok, Err};
-use rt::io::net::ip::SocketAddr;
-use rt::io::{Reader, Writer};
-use rt::io::{io_error, EndOfFile};
+use io::net::ip::SocketAddr;
+use io::{Reader, Writer};
+use io::{io_error, EndOfFile};
 use rt::rtio::{RtioSocket, RtioUdpSocket, IoFactory, with_local_io};
 
 pub struct UdpSocket {
@@ -60,7 +60,7 @@ impl UdpSocket {
         match self.obj.socket_name() {
             Ok(sn) => Some(sn),
             Err(ioerr) => {
-                rtdebug!("failed to get socket name: {:?}", ioerr);
+                debug!("failed to get socket name: {:?}", ioerr);
                 io_error::cond.raise(ioerr);
                 None
             }
@@ -106,8 +106,8 @@ impl Writer for UdpStream {
 mod test {
     use super::*;
     use rt::test::*;
-    use rt::io::net::ip::{Ipv4Addr, SocketAddr};
-    use rt::io::*;
+    use io::net::ip::{Ipv4Addr, SocketAddr};
+    use io::*;
     use option::{Some, None};
     use rt::comm::oneshot;
     use cell::Cell;
diff --git a/src/libstd/rt/io/net/unix.rs b/src/libstd/io/net/unix.rs
index dd8a999c6de..c6b4a2f2a42 100644
--- a/src/libstd/rt/io/net/unix.rs
+++ b/src/libstd/io/net/unix.rs
@@ -27,8 +27,8 @@ use prelude::*;
 use c_str::ToCStr;
 use rt::rtio::{IoFactory, RtioUnixListener, with_local_io};
 use rt::rtio::{RtioUnixAcceptor, RtioPipe};
-use rt::io::pipe::PipeStream;
-use rt::io::{io_error, Listener, Acceptor, Reader, Writer};
+use io::pipe::PipeStream;
+use io::{io_error, Listener, Acceptor, Reader, Writer};
 
 /// A stream which communicates over a named pipe.
 pub struct UnixStream {
@@ -52,7 +52,7 @@ impl UnixStream {
     ///
     /// # Example
     ///
-    ///     use std::rt::io::net::unix::UnixStream;
+    ///     use std::io::net::unix::UnixStream;
     ///
     ///     let server = Path("path/to/my/socket");
     ///     let mut stream = UnixStream::connect(&server);
@@ -98,7 +98,7 @@ impl UnixListener {
     ///
     /// # Example
     ///
-    ///     use std::rt::io::net::unix::UnixListener;
+    ///     use std::io::net::unix::UnixListener;
     ///
     ///     let server = Path("path/to/my/socket");
     ///     let mut stream = UnixListener::bind(&server);
@@ -154,7 +154,7 @@ mod tests {
     use super::*;
     use cell::Cell;
     use rt::test::*;
-    use rt::io::*;
+    use io::*;
     use rt::comm::oneshot;
 
     fn smalltest(server: ~fn(UnixStream), client: ~fn(UnixStream)) {
diff --git a/src/libstd/rt/io/option.rs b/src/libstd/io/option.rs
index 5938252571f..5938252571f 100644
--- a/src/libstd/rt/io/option.rs
+++ b/src/libstd/io/option.rs
diff --git a/src/libstd/rt/io/pipe.rs b/src/libstd/io/pipe.rs
index fbbd5a83561..edbc6fa4285 100644
--- a/src/libstd/rt/io/pipe.rs
+++ b/src/libstd/io/pipe.rs
@@ -15,8 +15,8 @@
 
 use prelude::*;
 use super::{Reader, Writer};
-use rt::io::{io_error, EndOfFile};
-use rt::io::native::file;
+use io::{io_error, EndOfFile};
+use io::native::file;
 use rt::rtio::{RtioPipe, with_local_io};
 
 pub struct PipeStream {
@@ -34,7 +34,7 @@ impl PipeStream {
     /// # Example
     ///
     ///     use std::libc;
-    ///     use std::rt::io::pipe;
+    ///     use std::io::pipe;
     ///
     ///     let mut pipe = PipeStream::open(libc::STDERR_FILENO);
     ///     pipe.write(bytes!("Hello, stderr!"));
diff --git a/src/libstd/rt/io/process.rs b/src/libstd/io/process.rs
index 6b21cde2488..3941003d1c0 100644
--- a/src/libstd/rt/io/process.rs
+++ b/src/libstd/io/process.rs
@@ -14,8 +14,8 @@ use prelude::*;
 use cell::Cell;
 
 use libc;
-use rt::io;
-use rt::io::io_error;
+use io;
+use io::io_error;
 use rt::rtio::{RtioProcess, IoFactory, with_local_io};
 
 use fmt;
diff --git a/src/libstd/rt/io/signal.rs b/src/libstd/io/signal.rs
index 3f013d5cac9..1310152d05f 100644
--- a/src/libstd/rt/io/signal.rs
+++ b/src/libstd/io/signal.rs
@@ -19,12 +19,13 @@ definitions for a number of signals.
 
 */
 
-use container::{Map, MutableMap};
+use clone::Clone;
 use comm::{Port, SharedChan, stream};
+use container::{Map, MutableMap};
 use hashmap;
+use io::io_error;
 use option::{Some, None};
 use result::{Err, Ok};
-use rt::io::io_error;
 use rt::rtio::{IoFactory, RtioSignal, with_local_io};
 
 #[repr(int)]
@@ -61,7 +62,7 @@ pub enum Signum {
 /// # Example
 ///
 /// ```rust
-/// use std::rt::io::signal::{Listener, Interrupt};
+/// use std::io::signal::{Listener, Interrupt};
 ///
 /// let mut listener = Listener::new();
 /// listener.register(signal::Interrupt);
@@ -148,7 +149,7 @@ impl Listener {
 #[cfg(test)]
 mod test {
     use libc;
-    use rt::io::timer;
+    use io::timer;
     use super::{Listener, Interrupt};
     use comm::{GenericPort, Peekable};
 
@@ -207,7 +208,7 @@ mod test {
     #[cfg(windows)]
     #[test]
     fn test_io_signal_invalid_signum() {
-        use rt::io;
+        use io;
         use super::User1;
         let mut s = Listener::new();
         let mut called = false;
diff --git a/src/libstd/rt/io/stdio.rs b/src/libstd/io/stdio.rs
index e829c77cec1..302d7579873 100644
--- a/src/libstd/rt/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -18,7 +18,7 @@ about the stream or terminal that it is attached to.
 # Example
 
 ```rust
-use std::rt::io;
+use std::io;
 
 let mut out = io::stdout();
 out.write(bytes!("Hello, world!"));
@@ -30,7 +30,7 @@ use fmt;
 use libc;
 use option::{Option, Some, None};
 use result::{Ok, Err};
-use rt::io::buffered::LineBufferedWriter;
+use io::buffered::LineBufferedWriter;
 use rt::rtio::{IoFactory, RtioTTY, RtioFileStream, with_local_io,
                CloseAsynchronously};
 use super::{Reader, Writer, io_error, IoError, OtherIoError,
diff --git a/src/libstd/rt/io/timer.rs b/src/libstd/io/timer.rs
index 48e0182354a..219f63026d2 100644
--- a/src/libstd/rt/io/timer.rs
+++ b/src/libstd/io/timer.rs
@@ -19,7 +19,7 @@ and create ports which will receive notifications after a period of time.
 
 ```rust
 
-use std::rt::io::Timer;
+use std::io::Timer;
 
 let mut timer = Timer::new().unwrap();
 timer.sleep(10); // block the task for awhile
@@ -41,7 +41,7 @@ loop {
 use comm::{Port, PortOne};
 use option::{Option, Some, None};
 use result::{Ok, Err};
-use rt::io::io_error;
+use io::io_error;
 use rt::rtio::{IoFactory, RtioTimer, with_local_io};
 
 pub struct Timer {
@@ -64,7 +64,7 @@ impl Timer {
             match io.timer_init() {
                 Ok(t) => Some(Timer { obj: t }),
                 Err(ioerr) => {
-                    rtdebug!("Timer::init: failed to init: {:?}", ioerr);
+                    debug!("Timer::init: failed to init: {:?}", ioerr);
                     io_error::cond.raise(ioerr);
                     None
                 }
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 967aee9135d..e0908dcb290 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -21,7 +21,7 @@
 //! boxes (`owned`), and unsafe and borrowed pointers (`ptr`, `borrowed`).
 //! Additionally, `std` provides pervasive types (`option` and `result`),
 //! task creation and communication primitives (`task`, `comm`), platform
-//! abstractions (`os` and `path`), basic I/O abstractions (`rt::io`), common
+//! abstractions (`os` and `path`), basic I/O abstractions (`io`), common
 //! traits (`kinds`, `ops`, `cmp`, `num`, `to_str`), and complete bindings
 //! to the C standard library (`libc`).
 //!
@@ -68,7 +68,7 @@
 #[allow(cstack)]; // NOTE: remove after the next snapshot.
 
 // When testing libstd, bring in libuv as the I/O backend so tests can print
-// things and all of the std::rt::io tests have an I/O interface to run on top
+// things and all of the std::io tests have an I/O interface to run on top
 // of
 #[cfg(test)] extern mod rustuv(vers = "0.9-pre");
 
@@ -179,6 +179,7 @@ pub mod local_data;
 pub mod libc;
 pub mod c_str;
 pub mod os;
+pub mod io;
 pub mod path;
 pub mod rand;
 pub mod run;
@@ -225,6 +226,7 @@ mod std {
     pub use logging;
     pub use option;
     pub use os;
+    pub use io;
     pub use rt;
     pub use str;
     pub use to_bytes;
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index ff24c35d4e6..213cf5dc07c 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -388,7 +388,7 @@ pub fn self_exe_path() -> Option<Path> {
     #[cfg(target_os = "linux")]
     #[cfg(target_os = "android")]
     fn load_self() -> Option<~[u8]> {
-        use std::rt::io;
+        use std::io;
 
         match io::result(|| io::fs::readlink(&Path::new("/proc/self/exe"))) {
             Ok(Some(path)) => Some(path.as_vec().to_owned()),
@@ -1447,8 +1447,8 @@ mod tests {
         use result::{Ok, Err};
         use os::*;
         use libc::*;
-        use rt::io;
-        use rt::io::fs;
+        use io;
+        use io::fs;
 
         #[cfg(unix)]
         fn lseek_(fd: c_int, size: uint) {
diff --git a/src/libstd/prelude.rs b/src/libstd/prelude.rs
index 0190b02fbc0..d3797cf8099 100644
--- a/src/libstd/prelude.rs
+++ b/src/libstd/prelude.rs
@@ -40,7 +40,7 @@ pub use result::{Result, Ok, Err};
 // Reexported functions
 pub use from_str::from_str;
 pub use iter::range;
-pub use rt::io::stdio::{print, println};
+pub use io::stdio::{print, println};
 
 // Reexported types and traits
 
@@ -67,7 +67,7 @@ pub use num::{Orderable, Signed, Unsigned, Round};
 pub use num::{Primitive, Int, Float, ToStrRadix, ToPrimitive, FromPrimitive};
 pub use path::{GenericPath, Path, PosixPath, WindowsPath};
 pub use ptr::RawPtr;
-pub use rt::io::{Writer, Reader, Seek};
+pub use io::{Writer, Reader, Seek};
 pub use send_str::{SendStr, SendStrOwned, SendStrStatic, IntoSendStr};
 pub use str::{Str, StrVector, StrSlice, OwnedStr};
 pub use to_bytes::IterBytes;
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 73d5c72a728..60fc1e0c6bc 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -17,7 +17,7 @@ use ops::Drop;
 #[cfg(unix)]
 use rand::reader::ReaderRng;
 #[cfg(unix)]
-use rt::io::File;
+use io::File;
 
 #[cfg(windows)]
 use cast;
diff --git a/src/libstd/rand/reader.rs b/src/libstd/rand/reader.rs
index b98dade4bf6..4beabb8bf6a 100644
--- a/src/libstd/rand/reader.rs
+++ b/src/libstd/rand/reader.rs
@@ -11,7 +11,7 @@
 //! A wrapper around any Reader to treat it as an RNG.
 
 use option::{Some, None};
-use rt::io::Reader;
+use io::Reader;
 
 use rand::Rng;
 
@@ -24,7 +24,7 @@ use rand::Rng;
 ///
 /// ```rust
 /// use std::rand::{reader, Rng};
-/// use std::rt::io::mem;
+/// use std::io::mem;
 ///
 /// fn main() {
 ///     let mut rng = reader::ReaderRng::new(mem::MemReader::new(~[1,2,3,4,5,6,7,8]));
@@ -77,7 +77,7 @@ impl<R: Reader> Rng for ReaderRng<R> {
 #[cfg(test)]
 mod test {
     use super::*;
-    use rt::io::mem::MemReader;
+    use io::mem::MemReader;
     use cast;
 
     #[test]
diff --git a/src/libstd/repr.rs b/src/libstd/repr.rs
index e939be64d73..3f8da64b3d6 100644
--- a/src/libstd/repr.rs
+++ b/src/libstd/repr.rs
@@ -19,7 +19,7 @@ More runtime type reflection
 use cast::transmute;
 use char;
 use container::Container;
-use rt::io;
+use io;
 use iter::Iterator;
 use libc::c_void;
 use option::{Some, None};
@@ -621,8 +621,8 @@ pub fn write_repr<T>(writer: &mut io::Writer, object: &T) {
 
 pub fn repr_to_str<T>(t: &T) -> ~str {
     use str;
-    use rt::io;
-    use rt::io::Decorator;
+    use io;
+    use io::Decorator;
 
     let mut result = io::mem::MemWriter::new();
     write_repr(&mut result as &mut io::Writer, t);
@@ -637,7 +637,7 @@ fn test_repr() {
     use prelude::*;
     use str;
     use str::Str;
-    use rt::io::Decorator;
+    use io::Decorator;
     use util::swap;
     use char::is_alphabetic;
 
diff --git a/src/libstd/rt/logging.rs b/src/libstd/rt/logging.rs
index f346380ff7a..55a6280a1f4 100644
--- a/src/libstd/rt/logging.rs
+++ b/src/libstd/rt/logging.rs
@@ -12,9 +12,9 @@ use fmt;
 use from_str::from_str;
 use libc::exit;
 use option::{Some, None, Option};
-use rt::io;
-use rt::io::stdio::StdWriter;
-use rt::io::buffered::LineBufferedWriter;
+use io;
+use io::stdio::StdWriter;
+use io::buffered::LineBufferedWriter;
 use rt::crate_map::{ModEntry, CrateMap, iter_crate_map, get_crate_map};
 use str::StrSlice;
 use u32;
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs
index f18b4dc4234..c90aafff20c 100644
--- a/src/libstd/rt/mod.rs
+++ b/src/libstd/rt/mod.rs
@@ -116,8 +116,10 @@ mod kill;
 /// The coroutine task scheduler, built on the `io` event loop.
 pub mod sched;
 
-/// Synchronous I/O.
-pub mod io;
+#[cfg(stage0)]
+pub mod io {
+    pub use io::stdio;
+}
 
 /// The EventLoop and internal synchronous I/O interface.
 pub mod rtio;
diff --git a/src/libstd/rt/rtio.rs b/src/libstd/rt/rtio.rs
index 9b1103b8a74..ca1fd413a56 100644
--- a/src/libstd/rt/rtio.rs
+++ b/src/libstd/rt/rtio.rs
@@ -8,21 +8,21 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+use c_str::CString;
+use comm::{SharedChan, PortOne, Port};
+use libc::c_int;
 use libc;
 use option::*;
+use path::Path;
 use result::*;
-use comm::{SharedChan, PortOne, Port};
-use libc::c_int;
-use c_str::CString;
 
-use ai = rt::io::net::addrinfo;
-use rt::io::IoError;
-use rt::io::signal::Signum;
-use super::io::process::{ProcessConfig, ProcessExit};
-use super::io::net::ip::{IpAddr, SocketAddr};
-use path::Path;
-use super::io::{SeekStyle};
-use super::io::{FileMode, FileAccess, FileStat, FilePermission};
+use ai = io::net::addrinfo;
+use io::IoError;
+use io::net::ip::{IpAddr, SocketAddr};
+use io::process::{ProcessConfig, ProcessExit};
+use io::signal::Signum;
+use io::{FileMode, FileAccess, FileStat, FilePermission};
+use io::{SeekStyle};
 
 pub trait Callback {
     fn call(&mut self);
@@ -78,7 +78,7 @@ pub enum CloseBehavior {
 pub fn with_local_io<T>(f: &fn(&mut IoFactory) -> Option<T>) -> Option<T> {
     use rt::sched::Scheduler;
     use rt::local::Local;
-    use rt::io::{io_error, standard_error, IoUnavailable};
+    use io::{io_error, standard_error, IoUnavailable};
 
     unsafe {
         let sched: *mut Scheduler = Local::unsafe_borrow();
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs
index f4e5811acd3..26cd405efe2 100644
--- a/src/libstd/rt/sched.rs
+++ b/src/libstd/rt/sched.rs
@@ -1133,7 +1133,7 @@ mod test {
 
     #[test]
     fn test_io_callback() {
-        use rt::io::timer;
+        use io::timer;
 
         // This is a regression test that when there are no schedulable tasks
         // in the work queue, but we are performing I/O, that once we do put
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs
index 7620a4371c1..e73d15abb6c 100644
--- a/src/libstd/rt/task.rs
+++ b/src/libstd/rt/task.rs
@@ -29,7 +29,7 @@ use rt::borrowck;
 use rt::context::Context;
 use rt::context;
 use rt::env;
-use rt::io::Writer;
+use io::Writer;
 use rt::kill::Death;
 use rt::local::Local;
 use rt::logging::StdErrLogger;
diff --git a/src/libstd/rt/test.rs b/src/libstd/rt/test.rs
index 3db9c049eb2..19ab36a6ac4 100644
--- a/src/libstd/rt/test.rs
+++ b/src/libstd/rt/test.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use super::io::net::ip::{SocketAddr, Ipv4Addr, Ipv6Addr};
+use io::net::ip::{SocketAddr, Ipv4Addr, Ipv6Addr};
 
 use cell::Cell;
 use clone::Clone;
diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs
index 50f73becef2..42546cb3c6a 100644
--- a/src/libstd/rt/util.rs
+++ b/src/libstd/rt/util.rs
@@ -68,8 +68,8 @@ pub fn default_sched_threads() -> uint {
 }
 
 pub fn dumb_println(args: &fmt::Arguments) {
-    use rt::io::native::stdio::stderr;
-    use rt::io::{Writer, io_error, ResourceUnavailable};
+    use io::native::stdio::stderr;
+    use io::{Writer, io_error, ResourceUnavailable};
     use rt::task::Task;
     use rt::local::Local;
 
diff --git a/src/libstd/run.rs b/src/libstd/run.rs
index c9b33a14c52..3bc56d2653a 100644
--- a/src/libstd/run.rs
+++ b/src/libstd/run.rs
@@ -14,13 +14,13 @@
 
 use cell::Cell;
 use comm::{stream, SharedChan};
+use io::Reader;
+use io::process::ProcessExit;
+use io::process;
+use io;
 use libc::{pid_t, c_int};
 use libc;
 use prelude::*;
-use rt::io::process;
-use rt::io::process::ProcessExit;
-use rt::io;
-use rt::io::Reader;
 use task;
 
 /**
@@ -335,8 +335,8 @@ mod tests {
     use str;
     use task::spawn;
     use unstable::running_on_valgrind;
-    use rt::io::native::file;
-    use rt::io::{Writer, Reader};
+    use io::native::file;
+    use io::{Writer, Reader};
 
     #[test]
     #[cfg(not(target_os="android"))] // FIXME(#10380)
diff --git a/src/libstd/to_bytes.rs b/src/libstd/to_bytes.rs
index 8c78e34528b..8b424c53be0 100644
--- a/src/libstd/to_bytes.rs
+++ b/src/libstd/to_bytes.rs
@@ -358,8 +358,8 @@ pub trait ToBytes {
 
 impl<A:IterBytes> ToBytes for A {
     fn to_bytes(&self, lsb0: bool) -> ~[u8] {
-        use rt::io::mem;
-        use rt::io::Writer;
+        use io::mem;
+        use io::Writer;
 
         do mem::with_mem_writer |wr| {
             do self.iter_bytes(lsb0) |bytes| {
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs
index 838ce4a6309..0565399bdf4 100644
--- a/src/libsyntax/diagnostic.rs
+++ b/src/libsyntax/diagnostic.rs
@@ -11,7 +11,7 @@
 use codemap::{Pos, Span};
 use codemap;
 
-use std::rt::io;
+use std::io;
 use std::local_data;
 use extra::term;
 
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index f8155ae2e6b..b70cb59caaf 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -945,10 +945,10 @@ pub fn std_macros() -> @str {
         format_args!(|args| { ::std::fmt::writeln($dst, args) }, $($arg)*)
     ))
     macro_rules! print (
-        ($($arg:tt)*) => (format_args!(::std::rt::io::stdio::print_args, $($arg)*))
+        ($($arg:tt)*) => (format_args!(::std::io::stdio::print_args, $($arg)*))
     )
     macro_rules! println (
-        ($($arg:tt)*) => (format_args!(::std::rt::io::stdio::println_args, $($arg)*))
+        ($($arg:tt)*) => (format_args!(::std::io::stdio::println_args, $($arg)*))
     )
 
     macro_rules! local_data_key (
@@ -1436,7 +1436,7 @@ mod test {
     }
 
     fn fake_print_crate(crate: &ast::Crate) {
-        let out = @mut std::rt::io::stderr() as @mut std::rt::io::Writer;
+        let out = @mut std::io::stderr() as @mut std::io::Writer;
         let s = pprust::rust_printer(out, get_ident_interner());
         pprust::print_crate_(s, crate);
     }
diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs
index 75b5ab81f9b..5a37e0a5ab3 100644
--- a/src/libsyntax/ext/source_util.rs
+++ b/src/libsyntax/ext/source_util.rs
@@ -19,8 +19,8 @@ use parse;
 use parse::token::{get_ident_interner};
 use print::pprust;
 
-use std::rt::io;
-use std::rt::io::File;
+use std::io;
+use std::io::File;
 use std::str;
 
 // These macros all relate to the file system; they either return
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 38fd65836aa..4d8a6e08d0d 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -18,7 +18,7 @@ use parse::lexer;
 use parse::token;
 use parse::token::{get_ident_interner};
 
-use std::rt::io;
+use std::io;
 use std::str;
 use std::uint;
 
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index 672865aadcc..0e9a529f950 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -19,8 +19,8 @@ use parse::attr::parser_attr;
 use parse::lexer::reader;
 use parse::parser::Parser;
 
-use std::rt::io;
-use std::rt::io::File;
+use std::io;
+use std::io::File;
 use std::str;
 
 pub mod lexer;
@@ -332,9 +332,9 @@ mod test {
     use super::*;
     use extra::serialize::Encodable;
     use extra;
-    use std::rt::io;
-    use std::rt::io::Decorator;
-    use std::rt::io::mem::MemWriter;
+    use std::io;
+    use std::io::Decorator;
+    use std::io::mem::MemWriter;
     use std::str;
     use codemap::{Span, BytePos, Spanned};
     use opt_vec;
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs
index 4801fa21fc4..9eae40e4c71 100644
--- a/src/libsyntax/print/pp.rs
+++ b/src/libsyntax/print/pp.rs
@@ -61,7 +61,7 @@
  * avoid combining it with other lines and making matters even worse.
  */
 
-use std::rt::io;
+use std::io;
 use std::vec;
 
 #[deriving(Clone, Eq)]
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index ed8eb4b5427..9c4803474d9 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -29,9 +29,9 @@ use print::pprust;
 
 use std::char;
 use std::str;
-use std::rt::io;
-use std::rt::io::Decorator;
-use std::rt::io::mem::MemWriter;
+use std::io;
+use std::io::Decorator;
+use std::io::mem::MemWriter;
 
 // The @ps is stored here to prevent recursive type.
 pub enum ann_node<'self> {
diff --git a/src/test/bench/core-std.rs b/src/test/bench/core-std.rs
index 2c86fdfe6ad..4f1e2672575 100644
--- a/src/test/bench/core-std.rs
+++ b/src/test/bench/core-std.rs
@@ -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");
diff --git a/src/test/bench/shootout-fasta.rs b/src/test/bench/shootout-fasta.rs
index d7d7e9a58f3..098512e9549 100644
--- a/src/test/bench/shootout-fasta.rs
+++ b/src/test/bench/shootout-fasta.rs
@@ -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;
diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs
index 25f24faede2..0937c71f91f 100644
--- a/src/test/bench/shootout-k-nucleotide-pipes.rs
+++ b/src/test/bench/shootout-k-nucleotide-pipes.rs
@@ -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");
diff --git a/src/test/bench/sudoku.rs b/src/test/bench/sudoku.rs
index d4f4a46af38..8b0b106b732 100644
--- a/src/test/bench/sudoku.rs
+++ b/src/test/bench/sudoku.rs
@@ -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;
diff --git a/src/test/run-pass/core-run-destroy.rs b/src/test/run-pass/core-run-destroy.rs
index e9cd860bd22..4a224fd52c9 100644
--- a/src/test/run-pass/core-run-destroy.rs
+++ b/src/test/run-pass/core-run-destroy.rs
@@ -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() {
diff --git a/src/test/run-pass/deriving-encodable-decodable.rs b/src/test/run-pass/deriving-encodable-decodable.rs
index 8d3ad267642..5812800259b 100644
--- a/src/test/run-pass/deriving-encodable-decodable.rs
+++ b/src/test/run-pass/deriving-encodable-decodable.rs
@@ -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;
diff --git a/src/test/run-pass/glob-std.rs b/src/test/run-pass/glob-std.rs
index 897ee9cb88b..8e516f748ff 100644
--- a/src/test/run-pass/glob-std.rs
+++ b/src/test/run-pass/glob-std.rs
@@ -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) {
diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs
index 75d11eddb1b..04958936fbe 100644
--- a/src/test/run-pass/ifmt.rs
+++ b/src/test/run-pass/ifmt.rs
@@ -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;
diff --git a/src/test/run-pass/issue-2904.rs b/src/test/run-pass/issue-2904.rs
index 5a3b177aadc..5208995a0c7 100644
--- a/src/test/run-pass/issue-2904.rs
+++ b/src/test/run-pass/issue-2904.rs
@@ -16,7 +16,7 @@
 
 extern mod extra;
 
-use std::rt::io;
+use std::io;
 use std::to_str;
 
 enum square {
diff --git a/src/test/run-pass/issue-4333.rs b/src/test/run-pass/issue-4333.rs
index 86cef39abc8..6fb66cd3b15 100644
--- a/src/test/run-pass/issue-4333.rs
+++ b/src/test/run-pass/issue-4333.rs
@@ -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;
diff --git a/src/test/run-pass/issue-8398.rs b/src/test/run-pass/issue-8398.rs
index 31ac2c46293..f9169618c2a 100644
--- a/src/test/run-pass/issue-8398.rs
+++ b/src/test/run-pass/issue-8398.rs
@@ -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([])
diff --git a/src/test/run-pass/rename-directory.rs b/src/test/run-pass/rename-directory.rs
index bdadcbdb729..d20f2bfef3b 100644
--- a/src/test/run-pass/rename-directory.rs
+++ b/src/test/run-pass/rename-directory.rs
@@ -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 {
diff --git a/src/test/run-pass/rtio-processes.rs b/src/test/run-pass/rtio-processes.rs
index 2228f284fc3..00f565324ec 100644
--- a/src/test/run-pass/rtio-processes.rs
+++ b/src/test/run-pass/rtio-processes.rs
@@ -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]
diff --git a/src/test/run-pass/signal-exit-status.rs b/src/test/run-pass/signal-exit-status.rs
index e3dc4dcaadb..3773ff5b263 100644
--- a/src/test/run-pass/signal-exit-status.rs
+++ b/src/test/run-pass/signal-exit-status.rs
@@ -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();
diff --git a/src/test/run-pass/stat.rs b/src/test/run-pass/stat.rs
index 9ce3d318064..b186a682810 100644
--- a/src/test/run-pass/stat.rs
+++ b/src/test/run-pass/stat.rs
@@ -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();
diff --git a/src/test/run-pass/tempfile.rs b/src/test/run-pass/tempfile.rs
index 3a115ab29cf..0a2905099ef 100644
--- a/src/test/run-pass/tempfile.rs
+++ b/src/test/run-pass/tempfile.rs
@@ -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 = {