rust-lang / rust-lang/rust-analyzer

Runnable `Run Tests` label should differ for inline modules

Open
#10,026 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-enhancement S-actionable
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.
grafik

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.