We don't need impl_trait_in_trait_parent_fn anymore
This commit is contained in:
parent
44c8ab9f8b
commit
6f5c51f3f4
2 changed files with 4 additions and 15 deletions
|
@ -179,8 +179,10 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ImplTraitInTraitFinder<'_, 'tcx> {
|
|||
|
||||
fn visit_ty(&mut self, ty: Ty<'tcx>) -> std::ops::ControlFlow<Self::BreakTy> {
|
||||
if let ty::Alias(ty::Projection, unshifted_alias_ty) = *ty.kind()
|
||||
&& self.tcx.is_impl_trait_in_trait(unshifted_alias_ty.def_id)
|
||||
&& self.tcx.impl_trait_in_trait_parent_fn(unshifted_alias_ty.def_id) == self.fn_def_id
|
||||
&& let Some(ty::ImplTraitInTraitData::Trait { fn_def_id, .. }
|
||||
| ty::ImplTraitInTraitData::Impl { fn_def_id, .. })
|
||||
= self.tcx.opt_rpitit_info(unshifted_alias_ty.def_id)
|
||||
&& fn_def_id == self.fn_def_id
|
||||
&& self.seen.insert(unshifted_alias_ty.def_id)
|
||||
{
|
||||
// We have entered some binders as we've walked into the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue