1
Fork 0

Rollup merge of #136313 - compiler-errors:too-many-args, r=lqd

Filter out RPITITs when suggesting unconstrained assoc type on too many generics

Fixes #136233
This commit is contained in:
Jacob Pratt 2025-01-31 00:26:34 -05:00 committed by GitHub
commit e6285b8ff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 0 deletions

View file

@ -495,6 +495,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
.iter()
.any(|constraint| constraint.ident.name == item.name)
})
.filter(|item| !item.is_impl_trait_in_trait())
.map(|item| self.tcx.item_ident(item.def_id).to_string())
.collect()
} else {