rust-lang / rust-lang/rust-analyzer
Runnable `Run Tests` label should differ for inline modules
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
This module has two Run Tests annotations at the top, the first comes from this module itself as it hosts tests, the second one comes from the expand module, the occupy the same line as both refer to the first line of the source.
This is less than ideal so we should make the first annotation have a different title.

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 locating the code that creates Run Tests annotations for inline modules and the expand module. Reproduce the shown case with both annotations on the same source line, then verify that the module's own annotation has a distinct title and no longer appears identical to the expanded module's label.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100