1
Fork 0

Do not suggest bounds restrictions for synthesized RPITITs

This commit is contained in:
Santiago Pastorino 2023-03-21 12:01:51 -03:00
parent febd59e122
commit 3b04ad2753
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
4 changed files with 36 additions and 4 deletions

View file

@ -420,6 +420,7 @@ fn suggest_restriction<'tcx>(
) {
if hir_generics.where_clause_span.from_expansion()
|| hir_generics.where_clause_span.desugaring_kind().is_some()
|| projection.map_or(false, |projection| tcx.opt_rpitit_info(projection.def_id).is_some())
{
return;
}