Skip to content

Commit d7c1ca3

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1790 b: refs/heads/master c: 92a716d h: refs/heads/master v: v3
1 parent b4a3805 commit d7c1ca3

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 530fe1daea2d99bf6a2be132766c43489b6cfd8a
2+
refs/heads/master: 92a716d862d92d3cc52a400457d2c3900d0c57a2

trunk/src/comp/middle/trans.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,6 @@ fn variant_types(@crate_ctxt cx, &ast.variant v) -> vec[@ty.t] {
17891789
}
17901790
}
17911791
case (ty.ty_tag(_, _)) { /* nothing */ }
1792-
case (_) { fail; }
17931792
}
17941793
ret tys;
17951794
}
@@ -2002,7 +2001,6 @@ fn iter_structural_ty_full(@block_ctxt cx,
20022001
j += 1;
20032002
}
20042003
}
2005-
case (_) { fail; }
20062004
}
20072005

20082006
variant_cx.build.Br(next_cx.llbb);
@@ -2169,7 +2167,6 @@ fn iter_sequence(@block_ctxt cx,
21692167
auto et = plain_ty(ty.ty_machine(common.ty_u8));
21702168
ret iter_sequence_body(cx, v, et, f, true);
21712169
}
2172-
case (_) { fail; }
21732170
}
21742171
cx.fcx.ccx.sess.bug("bad type in trans.iter_sequence");
21752172
fail;

trunk/src/comp/middle/typeck.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,9 +1861,6 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
18611861
case (ty.ty_chan(?it)) {
18621862
item_t = it;
18631863
}
1864-
case (_) {
1865-
fail;
1866-
}
18671864
}
18681865
auto rhs_1 = demand_expr(fcx, item_t, rhs_0);
18691866

@@ -1884,9 +1881,6 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
18841881
case (ty.ty_port(?it)) {
18851882
item_t = it;
18861883
}
1887-
case (_) {
1888-
fail;
1889-
}
18901884
}
18911885
auto lhs_1 = demand_expr(fcx, item_t, lhs_0);
18921886

trunk/src/lib/deque.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ fn create[T]() -> t[T] {
4747
fn get[T](vec[cell[T]] elts, uint i) -> T {
4848
alt (elts.(i)) {
4949
case (option.some[T](?t)) { ret t; }
50-
case (_) { fail; }
5150
}
5251
fail; // FIXME: remove me when exhaustiveness checking works
5352
}

trunk/src/lib/map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] {
176176
fn get(&K key) -> V {
177177
alt (find_common[K, V](hasher, eqer, bkts, nbkts, key)) {
178178
case (option.some[V](?val)) { ret val; }
179-
case (_) { fail; }
180179
}
181180
fail; // FIXME: remove me when exhaustiveness checking works
182181
}

0 commit comments

Comments
 (0)