Skip to content

Commit f4dbe9b

Browse files
committed
---
yaml --- r: 4322 b: refs/heads/master c: 78a0d38 h: refs/heads/master v: v3
1 parent b70018c commit f4dbe9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 6c9b90d06a455af08da7ea66977dc4d7d1b4ce1b
2+
refs/heads/master: 78a0d380cc276116bd995bebbee10b0144d89432

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6534,7 +6534,8 @@ fn trans_closure(bcx_maybe: &option::t[@block_ctxt],
65346534
// (trans_block, trans_expr, et cetera).
65356535
let rslt =
65366536
if !ty::type_is_nil(cx.ccx.tcx, block_ty) &&
6537-
!ty::type_is_bot(cx.ccx.tcx, block_ty) {
6537+
!ty::type_is_bot(cx.ccx.tcx, block_ty) &&
6538+
f.proto != ast::proto_iter {
65386539
trans_block(bcx, f.body, save_in(fcx.llretptr))
65396540
} else { trans_block(bcx, f.body, return) };
65406541
bcx = rslt.bcx;

0 commit comments

Comments
 (0)