diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-01-09 21:06:55 +1100 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-01-11 10:46:00 +1100 |
| commit | 4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (patch) | |
| tree | a11738f6d30837655498a8b7d2197bf01452a8f3 /src/compiletest | |
| parent | ff7ecca20e116b8365d8095fa9618dc11e54cfbe (diff) | |
Remove re-exports of std::io::stdio::{print, println} in the prelude.
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 12 | ||||
| -rw-r--r-- | src/compiletest/util.rs | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 89b6f06abfc..2e1384a110d 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -84,8 +84,8 @@ pub fn parse_config(args: ~[~str]) -> config { let args_ = args.tail(); if args[1] == ~"-h" || args[1] == ~"--help" { let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0); - println(getopts::groups::usage(message, groups)); - println(""); + println!("{}", getopts::groups::usage(message, groups)); + println!(""); fail!() } @@ -97,8 +97,8 @@ pub fn parse_config(args: ~[~str]) -> config { if matches.opt_present("h") || matches.opt_present("help") { let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0); - println(getopts::groups::usage(message, groups)); - println(""); + println!("{}", getopts::groups::usage(message, groups)); + println!(""); fail!() } @@ -219,8 +219,8 @@ pub fn run_tests(config: &config) { if config.target == ~"arm-linux-androideabi" { match config.mode{ mode_debug_info => { - println("arm-linux-androideabi debug-info \ - test uses tcp 5039 port. please reserve it"); + println!("arm-linux-androideabi debug-info \ + test uses tcp 5039 port. please reserve it"); //arm-linux-androideabi debug-info test uses remote debugger //so, we test 1 task at once os::setenv("RUST_TEST_TASKS","1"); diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs index 52081648978..d127269ab41 100644 --- a/src/compiletest/util.rs +++ b/src/compiletest/util.rs @@ -53,5 +53,5 @@ pub fn path_div() -> ~str { ~";" } pub fn logv(config: &config, s: ~str) { debug!("{}", s); - if config.verbose { println(s); } + if config.verbose { println!("{}", s); } } |
