diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index 99b18a67e1e..a8418a545a2 100644 --- a/src/compiletest/procsrv.rs +++ b/src/compiletest/procsrv.rs @@ -83,7 +83,7 @@ fn run(lib_path: ~str, (2, s) => { errs = s; } - _ { fail } + _ => { fail } }; count -= 1; }; diff --git a/src/test/bench/shootout-pfib.rs b/src/test/bench/shootout-pfib.rs index 5b309659ee5..3889fa00ff0 100644 --- a/src/test/bench/shootout-pfib.rs +++ b/src/test/bench/shootout-pfib.rs @@ -51,10 +51,9 @@ fn parse_opts(argv: ~[~str]) -> config { let opt_args = vec::slice(argv, 1u, vec::len(argv)); - alt getopts::getopts(opt_args, opts) { - ok(m) { return {stress: getopts::opt_present(m, ~"stress")} } - err(_) { fail; } + ok(m) => { return {stress: getopts::opt_present(m, ~"stress")} } + err(_) => { fail; } } }