rust-lang / rust-lang/rust-analyzer
Inlay Hints on type alias uses
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I had this idea while working on #16835
It would be cool when a type alias is used it gave like a hint that of what type it was like we do inline type hints.
So in the case above it would contain a shadowed out
(Arc<tt::Subtree>, SyntaxFixupUndoInfo, Span)
right after the MacroArgResult
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 reviewing the related issue #16835 and the existing inline type-hint behavior referenced in the description. The intended result is an inlay hint showing the underlying type immediately after a type alias use, such as MacroArgResult displaying (Arc<tt::Subtree>, SyntaxFixupUndoInfo, Span).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100