rust-lang / rust-lang/rust-analyzer
Give struct fields `mutable` semantic token modifier
Open
Nobody has claimed this yet.
A-highlighting
C-feature
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Could rust-analyzer emit the mutable semantic token modifier for struct fields when their type is a mutable reference, or when self is mutable or is &mut Self?
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 tracing rust-analyzer's semantic-token handling for struct fields and reviewing how Rust mutability is represented for mutable references and mutable self receivers. The issue is done when qualifying struct fields receive the mutable semantic token modifier, with coverage for each condition described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100