diff options
| author | Brian Anderson <[email protected]> | 2011-03-15 18:45:56 -0400 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-22 08:11:34 -0700 |
| commit | 92a716d862d92d3cc52a400457d2c3900d0c57a2 (patch) | |
| tree | 4d861a4ee4790723593e3be26d73902aa1f35d02 /src/comp/middle/trans.rs | |
| parent | Add a cleanup to trans_send. Express further confusion about cleanups in tran... (diff) | |
| download | rust-92a716d862d92d3cc52a400457d2c3900d0c57a2.tar.xz rust-92a716d862d92d3cc52a400457d2c3900d0c57a2.zip | |
Remove usages of case(_) { fail; } since the compiler does this automatically
Diffstat (limited to 'src/comp/middle/trans.rs')
| -rw-r--r-- | src/comp/middle/trans.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index bc43185a..aede3110 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1789,7 +1789,6 @@ fn variant_types(@crate_ctxt cx, &ast.variant v) -> vec[@ty.t] { } } case (ty.ty_tag(_, _)) { /* nothing */ } - case (_) { fail; } } ret tys; } @@ -2002,7 +2001,6 @@ fn iter_structural_ty_full(@block_ctxt cx, j += 1; } } - case (_) { fail; } } variant_cx.build.Br(next_cx.llbb); @@ -2169,7 +2167,6 @@ fn iter_sequence(@block_ctxt cx, auto et = plain_ty(ty.ty_machine(common.ty_u8)); ret iter_sequence_body(cx, v, et, f, true); } - case (_) { fail; } } cx.fcx.ccx.sess.bug("bad type in trans.iter_sequence"); fail; |