Skip to content

Commit a4403e5

Browse files
committed
Fix flipped tuple that was causing all that pain
1 parent 0c3290a commit a4403e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ pub fn build_closure(bcx0: block,
302302
// Return value (we just pass a by-ref () and cast it later to
303303
// the right thing):
304304
let ret_true = match bcx.fcx.loop_ret {
305-
Some((retptr, _)) => retptr,
305+
Some((_, retptr)) => retptr,
306306
None => bcx.fcx.llretptr
307307
};
308308
let ret_casted = PointerCast(bcx, ret_true, T_ptr(T_nil()));

0 commit comments

Comments
 (0)