Collect newly synthesized RPITITs on ImplTraitInTraitCollector
This commit is contained in:
parent
97eaa5dbf4
commit
3ecb70125e
1 changed files with 1 additions and 1 deletions
|
|
@ -830,7 +830,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
|
|||
|
||||
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
|
||||
if let ty::Alias(ty::Projection, proj) = ty.kind()
|
||||
&& self.interner().def_kind(proj.def_id) == DefKind::ImplTraitPlaceholder
|
||||
&& self.interner().is_impl_trait_in_trait(proj.def_id)
|
||||
{
|
||||
if let Some((ty, _)) = self.types.get(&proj.def_id) {
|
||||
return *ty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue