diff --git a/src/test/bench/core-std.rs b/src/test/bench/core-std.rs index 535b76bc94b..a7312cc8320 100644 --- a/src/test/bench/core-std.rs +++ b/src/test/bench/core-std.rs @@ -30,7 +30,7 @@ fn maybe_run_test(argv: &[~str], name: ~str, test: fn()) { if os::getenv(~"RUST_BENCH").is_some() { run_test = true } else if argv.len() > 0 { - run_test = argv.contains(~"all") || argv.contains(name) + run_test = argv.contains(&~"all") || argv.contains(&name) } if !run_test { return } diff --git a/src/test/bench/graph500-bfs.rs b/src/test/bench/graph500-bfs.rs index 89ca8eadde4..61d556b4613 100644 --- a/src/test/bench/graph500-bfs.rs +++ b/src/test/bench/graph500-bfs.rs @@ -374,7 +374,7 @@ fn validate(edges: ~[(node_id, node_id)], true } else { - edges.contains((u, v)) || edges.contains((v, u)) + edges.contains(&(u, v)) || edges.contains(&(v, u)) } };