Rollup merge of #100898 - compiler-errors:too-many-expr-fields, r=spastorino
Do not report too many expr field candidates When considering "this expressions' field has a {field/method}" suggestions: 1. Don't report methods that are out of scope 2. Use `span_suggestions` instead of reporting each field candidate, which caps the number of suggestions to 4 4. Blacklist some common traits like `Clone` and `Deref` Fixes #100894
This commit is contained in:
commit
091017c244
8 changed files with 158 additions and 67 deletions
|
@ -157,6 +157,7 @@ symbols! {
|
|||
BTreeSet,
|
||||
BinaryHeap,
|
||||
Borrow,
|
||||
BorrowMut,
|
||||
Break,
|
||||
C,
|
||||
CStr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue