use List<Ty<'tcx>>
for tuples
This commit is contained in:
parent
a9c1ab82f5
commit
1245131a11
53 changed files with 128 additions and 170 deletions
|
@ -461,10 +461,10 @@ impl<'tcx> CloneShimBuilder<'tcx> {
|
|||
|
||||
fn tuple_like_shim<I>(&mut self, dest: Place<'tcx>, src: Place<'tcx>, tys: I)
|
||||
where
|
||||
I: Iterator<Item = Ty<'tcx>>,
|
||||
I: IntoIterator<Item = Ty<'tcx>>,
|
||||
{
|
||||
let mut previous_field = None;
|
||||
for (i, ity) in tys.enumerate() {
|
||||
for (i, ity) in tys.into_iter().enumerate() {
|
||||
let field = Field::new(i);
|
||||
let src_field = self.tcx.mk_place_field(src, field, ity);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue