Skip to content

Commit

Permalink
Fixed os:: and int:: not being in scope, changed io::println to println
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiez committed Jun 23, 2013
1 parent cb58b19 commit a4a8a4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/bench/shootout-binarytrees.rs
Expand Up @@ -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 {
Expand All @@ -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)));

Expand All @@ -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)));
}

0 comments on commit a4a8a4a

Please sign in to comment.