diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-21 17:22:45 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-22 12:25:08 -0700 |
| commit | 728496929292c692aaad005bdbf4376bb1d78c4f (patch) | |
| tree | 07e7440ab435a3dd95509947f913774de9fa6e3f /src/fuzzer | |
| parent | 0e620ac030eddc9a12ada8a209e8ffeda6e10427 (diff) | |
Eliminate many match checks in rustc
Diffstat (limited to 'src/fuzzer')
| -rw-r--r-- | src/fuzzer/fuzzer.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index 6ceb788ac4c..9560faa0f0a 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -68,19 +68,15 @@ pure fn safe_to_use_expr(e: ast::expr, tm: test_mode) -> bool { // If the fuzzer moves a block-ending-in-semicolon into callee // position, the pretty-printer can't preserve this even by // parenthesizing!! See email to marijn. - ast::expr_if(_, _, _) => { false } - ast::expr_block(_) => { false } - ast::expr_match(_, _, _) => { false } - ast::expr_while(_, _) => { false } + ast::expr_if(*) | ast::expr_block(*) + | ast::expr_match(*) | ast::expr_while(*) => { false } // https://github.com/mozilla/rust/issues/929 - ast::expr_cast(_, _) => { false } - ast::expr_assert(_) => { false } - ast::expr_binary(_, _, _) => { false } - ast::expr_assign(_, _) => { false } - ast::expr_assign_op(_, _, _) => { false } + ast::expr_cast(*) | ast::expr_assert(*) | + ast::expr_binary(*) | ast::expr_assign(*) | + ast::expr_assign_op(*) => { false } - ast::expr_fail(option::none) => { false } + ast::expr_fail(option::none) | ast::expr_ret(option::none) => { false } // https://github.com/mozilla/rust/issues/953 |
