Skip to content

Commit 47cd05c

Browse files
committed
mir: Don't shadow the "args" variable in Call translation.
1 parent 9c6bfe4 commit 47cd05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_trans/trans/mir/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
196196
};
197197

198198
// Split the rust-call tupled arguments off.
199-
let (args, untuple) = if abi == Abi::RustCall && !args.is_empty() {
199+
let (first_args, untuple) = if abi == Abi::RustCall && !args.is_empty() {
200200
let (tup, args) = args.split_last().unwrap();
201201
(args, Some(tup))
202202
} else {
203203
(&args[..], None)
204204
};
205205

206206
let mut idx = 0;
207-
for arg in args {
207+
for arg in first_args {
208208
let val = self.trans_operand(&bcx, arg).val;
209209
self.trans_argument(&bcx, val, &mut llargs, &fn_ty,
210210
&mut idx, &mut callee.data);

0 commit comments

Comments
 (0)