Skip to content

Commit d0cda56

Browse files
committed
---
yaml --- r: 96058 b: refs/heads/dist-snap c: 49ee492 h: refs/heads/master v: v3
1 parent 3ab06a2 commit d0cda56

File tree

129 files changed

+556
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+556
-479
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 2ee72ba5c61f1b59d470e2899f208500f2cb0d7f
9+
refs/heads/dist-snap: 49ee49296b65f3d807142f3326bee71dd7e13290
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,12 +2839,12 @@ you just have to import it with an `use` statement.
28392839
For example, it re-exports `println` which is defined in `std::io::println`:
28402840

28412841
~~~
2842-
use puts = std::rt::io::stdio::println;
2842+
use puts = std::io::stdio::println;
28432843
28442844
fn main() {
28452845
println("println is imported per default.");
28462846
puts("Doesn't hinder you from importing it under an different name yourself.");
2847-
::std::rt::io::stdio::println("Or from not using the automatic import.");
2847+
::std::io::stdio::println("Or from not using the automatic import.");
28482848
}
28492849
~~~
28502850

branches/dist-snap/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern mod extra;
1717

1818
use std::os;
1919
use std::rt;
20-
use std::rt::io::fs;
20+
use std::io::fs;
2121

2222
use extra::getopts;
2323
use extra::getopts::groups::{optopt, optflag, reqopt};

branches/dist-snap/src/compiletest/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::rt::io::buffered::BufferedReader;
12-
use std::rt::io::File;
11+
use std::io::buffered::BufferedReader;
12+
use std::io::File;
1313

1414
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
1515

branches/dist-snap/src/compiletest/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
103103
}
104104

105105
fn iter_header(testfile: &Path, it: &fn(&str) -> bool) -> bool {
106-
use std::rt::io::buffered::BufferedReader;
107-
use std::rt::io::File;
106+
use std::io::buffered::BufferedReader;
107+
use std::io::File;
108108

109109
let mut rdr = BufferedReader::new(File::open(testfile).unwrap());
110110
loop {

branches/dist-snap/src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use std::os;
1212
use std::run;
1313
use std::str;
14-
use std::rt::io::process::ProcessExit;
14+
use std::io::process::ProcessExit;
1515

1616
#[cfg(target_os = "win32")]
1717
fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {

branches/dist-snap/src/compiletest/runtest.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use common::mode_run_pass;
12-
use common::mode_run_fail;
11+
use common::config;
1312
use common::mode_compile_fail;
1413
use common::mode_pretty;
15-
use common::config;
14+
use common::mode_run_fail;
15+
use common::mode_run_pass;
1616
use errors;
17-
use header::load_props;
1817
use header::TestProps;
18+
use header::load_props;
1919
use procsrv;
20-
use util;
2120
use util::logv;
21+
use util;
2222

23-
use std::rt::io;
24-
use std::rt::io::fs;
25-
use std::rt::io::File;
26-
use std::rt::io::process;
27-
use std::rt::io::process::ProcessExit;
23+
use std::io::File;
24+
use std::io::fs;
25+
use std::io::net::ip::{Ipv4Addr, SocketAddr};
26+
use std::io::net::tcp;
27+
use std::io::process::ProcessExit;
28+
use std::io::process;
29+
use std::io::timer;
30+
use std::io;
2831
use std::os;
2932
use std::str;
30-
use std::vec;
31-
use std::rt::io::net::tcp;
32-
use std::rt::io::net::ip::{Ipv4Addr, SocketAddr};
3333
use std::task;
34-
use std::rt::io::timer;
34+
use std::vec;
3535

3636
use extra::test::MetricMap;
3737

branches/dist-snap/src/etc/combine-tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def scrub(b):
5656
d.write("extern mod extra;\n")
5757
d.write("extern mod run_pass_stage2;\n")
5858
d.write("use run_pass_stage2::*;\n")
59-
d.write("use std::rt::io;\n");
60-
d.write("use std::rt::io::Writer;\n");
59+
d.write("use std::io;\n");
60+
d.write("use std::io::Writer;\n");
6161
d.write("fn main() {\n");
6262
d.write(" let mut out = io::stdout();\n");
6363
i = 0

branches/dist-snap/src/libextra/ebml.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub mod reader {
9797
use std::cast::transmute;
9898
use std::int;
9999
use std::option::{None, Option, Some};
100-
use std::rt::io::extensions::u64_from_be_bytes;
100+
use std::io::extensions::u64_from_be_bytes;
101101

102102
// ebml reading
103103

@@ -608,10 +608,10 @@ pub mod writer {
608608

609609
use std::cast;
610610
use std::clone::Clone;
611-
use std::rt::io;
612-
use std::rt::io::{Writer, Seek};
613-
use std::rt::io::mem::MemWriter;
614-
use std::rt::io::extensions::u64_to_be_bytes;
611+
use std::io;
612+
use std::io::{Writer, Seek};
613+
use std::io::mem::MemWriter;
614+
use std::io::extensions::u64_to_be_bytes;
615615

616616
// ebml writing
617617
pub struct Encoder {
@@ -961,8 +961,8 @@ mod tests {
961961
use serialize::Encodable;
962962
use serialize;
963963

964-
use std::rt::io::Decorator;
965-
use std::rt::io::mem::MemWriter;
964+
use std::io::Decorator;
965+
use std::io::mem::MemWriter;
966966
use std::option::{None, Option, Some};
967967

968968
#[test]

branches/dist-snap/src/libextra/glob.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
*/
2525

2626
use std::{os, path};
27-
use std::rt::io;
28-
use std::rt::io::fs;
27+
use std::io;
28+
use std::io::fs;
2929
use std::path::is_sep;
3030

3131
use sort;

branches/dist-snap/src/libextra/json.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use std::char;
2020
use std::cast::transmute;
2121
use std::f64;
2222
use std::hashmap::HashMap;
23-
use std::rt::io;
24-
use std::rt::io::Decorator;
25-
use std::rt::io::mem::MemWriter;
23+
use std::io;
24+
use std::io::Decorator;
25+
use std::io::mem::MemWriter;
2626
use std::num;
2727
use std::str;
2828
use std::to_str;
@@ -1311,7 +1311,7 @@ mod tests {
13111311

13121312
use super::*;
13131313

1314-
use std::rt::io;
1314+
use std::io;
13151315
use serialize::Decodable;
13161316
use treemap::TreeMap;
13171317

@@ -1483,8 +1483,8 @@ mod tests {
14831483
}
14841484
14851485
fn with_str_writer(f: &fn(@mut io::Writer)) -> ~str {
1486-
use std::rt::io::mem::MemWriter;
1487-
use std::rt::io::Decorator;
1486+
use std::io::mem::MemWriter;
1487+
use std::io::Decorator;
14881488
use std::str;
14891489
14901490
let m = @mut MemWriter::new();

branches/dist-snap/src/libextra/stats.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use sort;
1414
use std::cmp;
1515
use std::hashmap;
16-
use std::rt::io;
16+
use std::io;
1717
use std::num;
1818

1919
// NB: this can probably be rewritten in terms of num::Num
@@ -388,7 +388,7 @@ mod tests {
388388
use stats::Summary;
389389
use stats::write_5_number_summary;
390390
use stats::write_boxplot;
391-
use std::rt::io;
391+
use std::io;
392392
use std::str;
393393

394394
fn check(samples: &[f64], summ: &Summary) {
@@ -942,8 +942,8 @@ mod tests {
942942
#[test]
943943
fn test_boxplot_nonpositive() {
944944
fn t(s: &Summary, expected: ~str) {
945-
use std::rt::io::mem::MemWriter;
946-
use std::rt::io::Decorator;
945+
use std::io::mem::MemWriter;
946+
use std::io::Decorator;
947947
let mut m = MemWriter::new();
948948
write_boxplot(&mut m as &mut io::Writer, s, 30);
949949
let out = str::from_utf8_owned(m.inner());

branches/dist-snap/src/libextra/tempfile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use std::os;
1515
use std::rand::Rng;
1616
use std::rand;
17-
use std::rt::io;
18-
use std::rt::io::fs;
17+
use std::io;
18+
use std::io::fs;
1919

2020
/// A wrapper for a path to temporary directory implementing automatic
2121
/// scope-pased deletion.

branches/dist-snap/src/libextra/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#[allow(missing_doc)];
1414

1515

16-
use std::rt::io;
16+
use std::io;
1717

1818
#[cfg(not(target_os = "win32"))] use std::os;
1919
#[cfg(not(target_os = "win32"))] use terminfo::*;

branches/dist-snap/src/libextra/terminfo/parser/compiled.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use std::{vec, str};
1717
use std::hashmap::HashMap;
18-
use std::rt::io;
18+
use std::io;
1919
use super::super::TermInfo;
2020

2121
// These are the orders ncurses uses in its compiled format (as of 5.9). Not sure if portable.

branches/dist-snap/src/libextra/terminfo/searcher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
1414
use std::{os, str};
1515
use std::os::getenv;
16-
use std::rt::io;
17-
use std::rt::io::File;
16+
use std::io;
17+
use std::io::File;
1818

1919
/// Return path to database entry for `term`
2020
pub fn get_dbpath_for_term(term: &str) -> Option<~Path> {

branches/dist-snap/src/libextra/test.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use treemap::TreeMap;
3030

3131
use std::clone::Clone;
3232
use std::comm::{stream, SharedChan, GenericPort, GenericChan};
33-
use std::rt::io;
34-
use std::rt::io::File;
33+
use std::io;
34+
use std::io::File;
3535
use std::task;
3636
use std::to_str::ToStr;
3737
use std::f64;
@@ -655,9 +655,9 @@ pub fn run_tests_console(opts: &TestOpts,
655655

656656
#[test]
657657
fn should_sort_failures_before_printing_them() {
658-
use std::rt::io;
659-
use std::rt::io::Decorator;
660-
use std::rt::io::mem::MemWriter;
658+
use std::io;
659+
use std::io::Decorator;
660+
use std::io::mem::MemWriter;
661661
use std::str;
662662
fn dummy() {}
663663

branches/dist-snap/src/libextra/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#[allow(missing_doc)];
1212

13-
use std::rt::io::Reader;
14-
use std::rt::io::mem::BufReader;
13+
use std::io::Reader;
14+
use std::io::mem::BufReader;
1515
use std::num;
1616
use std::str;
1717

branches/dist-snap/src/libextra/url.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
1313
#[allow(missing_doc)];
1414

15-
use std::rt::io::{Reader, Seek};
16-
use std::rt::io::mem::BufReader;
15+
use std::io::{Reader, Seek};
16+
use std::io::mem::BufReader;
1717
use std::cmp::Eq;
1818
use std::hashmap::HashMap;
1919
use std::to_bytes;

branches/dist-snap/src/libextra/uuid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ mod test {
522522
use std::str;
523523
use std::rand;
524524
use std::num::Zero;
525-
use std::rt::io::Decorator;
526-
use std::rt::io::mem::MemWriter;
525+
use std::io::Decorator;
526+
use std::io::mem::MemWriter;
527527

528528
#[test]
529529
fn test_new_nil() {

branches/dist-snap/src/libextra/workcache.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use treemap::TreeMap;
1818
use std::cell::Cell;
1919
use std::comm::{PortOne, oneshot};
2020
use std::{str, task};
21-
use std::rt::io;
22-
use std::rt::io::{File, Decorator};
23-
use std::rt::io::mem::MemWriter;
21+
use std::io;
22+
use std::io::{File, Decorator};
23+
use std::io::mem::MemWriter;
2424

2525
/**
2626
*
@@ -479,7 +479,7 @@ impl<'self, T:Send +
479479
#[test]
480480
fn test() {
481481
use std::{os, run};
482-
use std::rt::io::fs;
482+
use std::io::fs;
483483
use std::str::from_utf8_owned;
484484

485485
// Create a path to a new file 'filename' in the directory in which

branches/dist-snap/src/librustc/back/link.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::ptr;
3131
use std::run;
3232
use std::str;
3333
use std::vec;
34-
use std::rt::io::fs;
34+
use std::io::fs;
3535
use syntax::abi;
3636
use syntax::ast;
3737
use syntax::ast_map::{path, path_mod, path_name, path_pretty_name};
@@ -955,9 +955,8 @@ pub fn link_binary(sess: Session,
955955
sess.abort_if_errors();
956956
}
957957

958-
// On OSX, debuggers needs this utility to get run to do some munging of the
959-
// symbols
960-
if sess.targ_cfg.os == abi::OsMacos && sess.opts.debuginfo {
958+
// Clean up on Darwin
959+
if sess.targ_cfg.os == abi::OsMacos {
961960
// FIXME (#9639): This needs to handle non-utf8 paths
962961
run::process_status("dsymutil", [output.as_str().unwrap().to_owned()]);
963962
}
@@ -969,7 +968,7 @@ pub fn link_binary(sess: Session,
969968
}
970969

971970
fn is_writeable(p: &Path) -> bool {
972-
use std::rt::io;
971+
use std::io;
973972

974973
!p.exists() ||
975974
(match io::result(|| p.stat()) {

branches/dist-snap/src/librustc/driver/driver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ use util::common::time;
2626
use util::ppaux;
2727

2828
use std::hashmap::{HashMap,HashSet};
29-
use std::rt::io;
30-
use std::rt::io::fs;
31-
use std::rt::io::mem::MemReader;
29+
use std::io;
30+
use std::io::fs;
31+
use std::io::mem::MemReader;
3232
use std::os;
3333
use std::vec;
3434
use extra::getopts::groups::{optopt, optmulti, optflag, optflagopt};

0 commit comments

Comments
 (0)