1
Fork 0

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:
Matthias Krüger 2022-08-29 21:12:54 +02:00 committed by GitHub
commit 091017c244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 158 additions and 67 deletions

View file

@ -157,6 +157,7 @@ symbols! {
BTreeSet,
BinaryHeap,
Borrow,
BorrowMut,
Break,
C,
CStr,