trans/datum -- move mutable variable into closure
This commit is contained in:
parent
f7e5d8418c
commit
64c9b5c3ae
@ -480,9 +480,9 @@ impl Datum<Expr> {
|
||||
* no cleanup scheduled).
|
||||
*/
|
||||
|
||||
let mut bcx = bcx;
|
||||
self.match_kind(
|
||||
|l| {
|
||||
let mut bcx = bcx;
|
||||
match l.appropriate_rvalue_mode(bcx.ccx()) {
|
||||
ByRef => {
|
||||
let scratch = rvalue_scratch_datum(bcx, l.ty, name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user