use List<Ty<'tcx>>
for tuples
This commit is contained in:
parent
a9c1ab82f5
commit
1245131a11
53 changed files with 128 additions and 170 deletions
|
@ -148,8 +148,8 @@ fn is_needs_drop_and_init<'tcx>(
|
|||
})
|
||||
}
|
||||
|
||||
ty::Tuple(_) => ty
|
||||
.tuple_fields()
|
||||
ty::Tuple(fields) => fields
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(f, f_ty)| (Field::from_usize(f), f_ty, mpi))
|
||||
.any(field_needs_drop_and_init),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue