When looking for alternative places for method not found, look at parent expresions for it #126131
Open
Description
opened on Jun 7, 2024
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.
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Diagnostics: An error or lint that needs small tweaks.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.
Activity