No need to borrow allocate_local

This commit is contained in:
Jonas Schievink 2016-09-26 22:55:07 +02:00
parent dfab092765
commit 9ccac2a8fb

View File

@ -290,7 +290,7 @@ pub fn trans_mir<'blk, 'tcx: 'blk>(fcx: &'blk FunctionContext<'blk, 'tcx>) {
let retptr = allocate_local(mir::RETURN_POINTER);
iter::once(retptr)
.chain(args.into_iter())
.chain(mir.vars_and_temps_iter().map(&mut allocate_local))
.chain(mir.vars_and_temps_iter().map(allocate_local))
.collect()
};