Do not suggest bounds restrictions for synthesized RPITITs
This commit is contained in:
parent
febd59e122
commit
3b04ad2753
4 changed files with 36 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue