We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f50fb15 + ae151d3 commit 73132caCopy full SHA for 73132ca
src/librustc_mir/build/expr/into.rs
@@ -63,7 +63,7 @@ impl<'a,'tcx> Builder<'a,'tcx> {
63
} else {
64
// Body of the `if` expression without an `else` clause must return `()`, thus
65
// we implicitly generate a `else {}` if it is not specified.
66
- this.cfg.push_assign_unit(else_block, expr_span, &Lvalue::ReturnPointer);
+ this.cfg.push_assign_unit(else_block, expr_span, destination);
67
else_block
68
};
69
0 commit comments