diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:49:10 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:54:03 -0700 |
| commit | 418d09e547a021ad4853680f7efc3efc8774054c (patch) | |
| tree | b6cd0c22529d90105a7cc1d87fde5504f31031f5 /src/lib | |
| parent | b4b81117ce3713599b48d2168bf10e0225f94819 (diff) | |
| download | rust-418d09e547a021ad4853680f7efc3efc8774054c.tar.gz rust-418d09e547a021ad4853680f7efc3efc8774054c.zip | |
Convert all uses of #ifmt to #fmt. Issue #855
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/net.rs | 2 | ||||
| -rw-r--r-- | src/lib/task.rs | 2 | ||||
| -rw-r--r-- | src/lib/test.rs | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/net.rs b/src/lib/net.rs index e7d8d13df2b..246574dd07b 100644 --- a/src/lib/net.rs +++ b/src/lib/net.rs @@ -6,7 +6,7 @@ tag ip_addr { ipv4(u8, u8, u8, u8); } fn format_addr(ip: ip_addr) -> istr { alt ip { ipv4(a, b, c, d) { - #ifmt["%u.%u.%u.%u", a as uint, b as uint, c as uint, d as uint] + #fmt["%u.%u.%u.%u", a as uint, b as uint, c as uint, d as uint] } _ { fail "Unsupported address type"; } } diff --git a/src/lib/task.rs b/src/lib/task.rs index f9765e64b88..71032bbcd64 100644 --- a/src/lib/task.rs +++ b/src/lib/task.rs @@ -81,7 +81,7 @@ fn join(task_port: (task_id, comm::port<task_notification>)) -> task_result { exit(_id, res) { if _id == id { ret res - } else { fail #ifmt["join received id %d, expected %d", _id, id] } + } else { fail #fmt["join received id %d, expected %d", _id, id] } } } } diff --git a/src/lib/test.rs b/src/lib/test.rs index 77936e2b572..e8ab05a46ba 100644 --- a/src/lib/test.rs +++ b/src/lib/test.rs @@ -120,11 +120,11 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc], te_filtered(filtered_tests) { st.total = vec::len(filtered_tests); st.out.write_line( - #ifmt["\nrunning %u tests", st.total]); + #fmt["\nrunning %u tests", st.total]); } te_wait(test) { st.out.write_str( - #ifmt["test %s ... ", test.name]); + #fmt["test %s ... ", test.name]); } te_result(test, result) { alt result { @@ -167,17 +167,17 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc], st.out.write_line(~"\nfailures:"); for test: test_desc in st.failures { let testname = test.name; // Satisfy alias analysis - st.out.write_line(#ifmt[" %s", testname]); + st.out.write_line(#fmt[" %s", testname]); } } - st.out.write_str(#ifmt["\nresult: "]); + st.out.write_str(#fmt["\nresult: "]); if success { // There's no parallelism at this point so it's safe to use color write_ok(st.out, true); } else { write_failed(st.out, true); } st.out.write_str( - #ifmt[". %u passed; %u failed; %u ignored\n\n", st.passed, + #fmt[". %u passed; %u failed; %u ignored\n\n", st.passed, st.failed, st.ignored]); ret success; @@ -225,7 +225,7 @@ fn run_tests(opts: &test_opts, tests: &[test_desc], to_task: &test_to_task, // provide a great user experience because you might sit waiting for the // result of a particular test for an unusually long amount of time. let concurrency = get_concurrency(); - log #ifmt["using %u test tasks", concurrency]; + log #fmt["using %u test tasks", concurrency]; let total = vec::len(filtered_tests); let run_idx = 0u; let wait_idx = 0u; |
