rust-lang / rust-lang/rust-analyzer
Unelide lifetimes assist
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
We should have an assist that unelides lifetimes in a function, inserting them all and having snippets pre-selecting them. Given we lack proper support of lifetimes in hir and mapping them back this is currently a bit trickly to implement / needs to be fully syntax based. So probably rather annoying to implement currently
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
Start by investigating rust-analyzer's lifetime support in HIR and how assists map syntax, since the issue identifies these as the main implementation constraints. Done means an assist can unelide all lifetimes in a function and provide snippets that pre-select the inserted lifetimes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100