rust-lang / rust-lang/rust-analyzer

Inlay Hints on type alias uses

Open
#16,873 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature
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

image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.