1
Fork 0
This commit is contained in:
ouz-a 2022-03-07 21:55:58 +03:00
parent ecb867ec3c
commit b930efb354
3 changed files with 98 additions and 0 deletions

View file

@ -325,6 +325,12 @@ pub fn suggest_constraining_type_params<'a>(
}
}
// This check is always run on non-valid code
// to not trigger ICE
if constraints.is_empty() && suggestions.is_empty() {
return false;
}
if constraints.is_empty() {
continue;
}