fix
This commit is contained in:
parent
ecb867ec3c
commit
b930efb354
3 changed files with 98 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue