When looking for alternative places for method not found, look at parent expresions for it
Open
Nobody has claimed this yet.
A-diagnostics
D-lack-of-suggestion
D-terse
P-low
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
When you have a chained expression foo.bar().baz.bat() and either baz or bat aren't found, look at removing parts of the chain to find the method or the field. We currently look for potential nested fields that would have the field and method not found.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reproducing the chained expression foo.bar().baz.bat() and inspect the compiler's existing method-not-found and field-not-found suggestion handling. Done means suggestions also consider removing parts of the chain when baz or bat is unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100