Skip to content

Commit 15b9b27

Browse files
slice_for_each gives a reference already
1 parent 295ea0d commit 15b9b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/mir/rvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
9595
let size = C_uint(bcx.ccx, size);
9696
let base = base::get_dataptr(&bcx, dest.llval);
9797
tvec::slice_for_each(&bcx, base, tr_elem.ty, size, |bcx, llslot| {
98-
self.store_operand(&bcx, llslot, tr_elem);
98+
self.store_operand(bcx, llslot, tr_elem);
9999
})
100100
}
101101

0 commit comments

Comments
 (0)