-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
With inband lifetimes going away (rust-lang/rust#44524), I believe we should just fix the ergonomics at the ide layer.
Typing fn foo(&'a str) should emit an error for unresolved 'a, and a quick fix to declare a lifetime: fn foo<'a>(&'a str).
See how NoSuchField diagnostics is treated, which has a similar flow with a fix: https://github.com/rust-analyzer/rust-analyzer/search?q=NoSuchField.
@Veykril I believe you did name resolution for lifetimes, could you add a code link for where it is happening?
Metadata
Metadata
Assignees
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now