@@ -4728,9 +4728,8 @@ fn trans_alt(&@block_ctxt cx, &@ast::expr expr, &vec[ast::arm] arms,
4728
4728
this_cx = next_cx;
4729
4729
}
4730
4730
auto default_cx = this_cx;
4731
- auto default_res =
4732
- trans_fail( default_cx, some[ common:: span] ( expr. span) ,
4733
- "non-exhaustive match failure") ;
4731
+ trans_fail( default_cx, some[ common:: span] ( expr. span) ,
4732
+ "non-exhaustive match failure") ;
4734
4733
ret rslt( join_branches( cx, arm_results) , C_nil ( ) ) ;
4735
4734
}
4736
4735
@@ -4995,8 +4994,7 @@ fn trans_index(&@block_ctxt cx, &span sp, &@ast::expr base, &@ast::expr idx,
4995
4994
bcx. build. CondBr ( bounds_check, next_cx. llbb, fail_cx. llbb) ;
4996
4995
// fail: bad bounds check.
4997
4996
4998
- auto fail_res =
4999
- trans_fail( fail_cx, some[ common:: span] ( sp) , "bounds check") ;
4997
+ trans_fail( fail_cx, some[ common:: span] ( sp) , "bounds check") ;
5000
4998
auto body;
5001
4999
alt ( interior_len_and_data) {
5002
5000
case ( some( ?lad) ) { body = lad. _1; }
@@ -6291,7 +6289,7 @@ fn trans_check_expr(&@block_ctxt cx, &@ast::expr e, &str s) -> result {
6291
6289
auto cond_res = trans_expr( cx, e) ;
6292
6290
auto expr_str = s + " " + expr_to_str( e) + " failed";
6293
6291
auto fail_cx = new_sub_block_ctxt( cx, "fail") ;
6294
- auto fail_res = trans_fail( fail_cx, some[ common:: span] ( e. span) , expr_str) ;
6292
+ trans_fail( fail_cx, some[ common:: span] ( e. span) , expr_str) ;
6295
6293
auto next_cx = new_sub_block_ctxt( cx, "next") ;
6296
6294
cond_res. bcx. build. CondBr ( cond_res. val, next_cx. llbb, fail_cx. llbb) ;
6297
6295
ret rslt( next_cx, C_nil ( ) ) ;
0 commit comments