Skip to content

Commit 9ccac2a

Browse files
No need to borrow allocate_local
1 parent dfab092 commit 9ccac2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ pub fn trans_mir<'blk, 'tcx: 'blk>(fcx: &'blk FunctionContext<'blk, 'tcx>) {
290290
let retptr = allocate_local(mir::RETURN_POINTER);
291291
iter::once(retptr)
292292
.chain(args.into_iter())
293-
.chain(mir.vars_and_temps_iter().map(&mut allocate_local))
293+
.chain(mir.vars_and_temps_iter().map(allocate_local))
294294
.collect()
295295
};
296296

0 commit comments

Comments
 (0)