Quick fix to declare an unresolved lifetime #11039
Labels
A-diagnostics
diagnostics / error reporting
C-feature
Category: feature request
E-has-instructions
Issue has some instructions and pointers to code to get started
S-actionable
Someone could pick this issue up and work on it right now
Uh oh!
There was an error while loading. Please reload this page.
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?
The text was updated successfully, but these errors were encountered: