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 0c3290a commit a4403e5Copy full SHA for a4403e5
src/librustc/middle/trans/closure.rs
@@ -302,7 +302,7 @@ pub fn build_closure(bcx0: block,
302
// Return value (we just pass a by-ref () and cast it later to
303
// the right thing):
304
let ret_true = match bcx.fcx.loop_ret {
305
- Some((retptr, _)) => retptr,
+ Some((_, retptr)) => retptr,
306
None => bcx.fcx.llretptr
307
};
308
let ret_casted = PointerCast(bcx, ret_true, T_ptr(T_nil()));
0 commit comments