Remove as_substs
usage
This commit is contained in:
parent
de96f3d873
commit
cddc7743a3
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ fn push_inner<'tcx>(stack: &mut TypeWalkerStack<'tcx>, parent: GenericArg<'tcx>)
|
|||
| ty::FnDef(_, substs) => {
|
||||
stack.extend(substs.iter().rev());
|
||||
}
|
||||
ty::Tuple(ts) => stack.extend(ts.as_substs().iter().rev()),
|
||||
ty::Tuple(ts) => stack.extend(ts.iter().rev().map(GenericArg::from)),
|
||||
ty::GeneratorWitness(ts) => {
|
||||
stack.extend(ts.skip_binder().iter().rev().map(|ty| ty.into()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue