We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70018c commit f4dbe9bCopy full SHA for f4dbe9b
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 6c9b90d06a455af08da7ea66977dc4d7d1b4ce1b
+refs/heads/master: 78a0d380cc276116bd995bebbee10b0144d89432
trunk/src/comp/middle/trans.rs
@@ -6534,7 +6534,8 @@ fn trans_closure(bcx_maybe: &option::t[@block_ctxt],
6534
// (trans_block, trans_expr, et cetera).
6535
let rslt =
6536
if !ty::type_is_nil(cx.ccx.tcx, block_ty) &&
6537
- !ty::type_is_bot(cx.ccx.tcx, block_ty) {
+ !ty::type_is_bot(cx.ccx.tcx, block_ty) &&
6538
+ f.proto != ast::proto_iter {
6539
trans_block(bcx, f.body, save_in(fcx.llretptr))
6540
} else { trans_block(bcx, f.body, return) };
6541
bcx = rslt.bcx;
0 commit comments