Open
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?