diff options
| author | Matthijs Hofstra <thiezz@gmail.com> | 2013-06-16 17:08:34 +0200 |
|---|---|---|
| committer | Matthijs Hofstra <thiezz@gmail.com> | 2013-06-23 23:21:34 +0200 |
| commit | a4a8a4ac277f686a4d771f1a8ce5a55b27eddf5c (patch) | |
| tree | 223742d80ef8b1d8933c3214cdc2164929e71206 /src/test/bench | |
| parent | cb58b19f023f95614e4a2bc3c812614d0938a9f2 (diff) | |
| download | rust-a4a8a4ac277f686a4d771f1a8ce5a55b27eddf5c.tar.gz rust-a4a8a4ac277f686a4d771f1a8ce5a55b27eddf5c.zip | |
Fixed os:: and int:: not being in scope, changed io::println to println
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/shootout-binarytrees.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs index e7aed911cb0..391dd513666 100644 --- a/src/test/bench/shootout-binarytrees.rs +++ b/src/test/bench/shootout-binarytrees.rs @@ -41,7 +41,9 @@ fn bottom_up_tree<'r>(arena: &'r mut arena::Arena, item: int, depth: int) } fn main() { - let args = os::args(); + use std::os; + use std::int; + let args = std::os::args(); let args = if os::getenv(~"RUST_BENCH").is_some() { ~[~"", ~"17"] } else if args.len() <= 1u { @@ -63,7 +65,7 @@ fn main() { let stretch_depth = max_depth + 1; let stretch_tree = bottom_up_tree(&mut stretch_arena, 0, stretch_depth); - io::println(fmt!("stretch tree of depth %d\t check: %d", + println(fmt!("stretch tree of depth %d\t check: %d", stretch_depth, item_check(stretch_tree))); @@ -81,12 +83,12 @@ fn main() { chk += item_check(temp_tree); i += 1; } - io::println(fmt!("%d\t trees of depth %d\t check: %d", + println(fmt!("%d\t trees of depth %d\t check: %d", iterations * 2, depth, chk)); depth += 2; } - io::println(fmt!("long lived trees of depth %d\t check: %d", + println(fmt!("long lived tree of depth %d\t check: %d", max_depth, item_check(long_lived_tree))); } |
