Skip to content

Commit 64c9b5c

Browse files
committed
trans/datum -- move mutable variable into closure
1 parent f7e5d84 commit 64c9b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/datum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ impl Datum<Expr> {
480480
* no cleanup scheduled).
481481
*/
482482

483-
let mut bcx = bcx;
484483
self.match_kind(
485484
|l| {
485+
let mut bcx = bcx;
486486
match l.appropriate_rvalue_mode(bcx.ccx()) {
487487
ByRef => {
488488
let scratch = rvalue_scratch_datum(bcx, l.ty, name);

0 commit comments

Comments
 (0)