rust-lang / rust-lang/rust-analyzer
Not showing "run benchmark" for non-std benchmarks
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
When using the unstable standard library benchmark, I am prompted to run a specific benchmark.
Using a non std benchmarker does not work. Marking a benchmark with #[bench] or #[divan::bench] results in no "run benchmark" prompt appearing when I am not using the built-in unstable bench.
Rust Analyzer Version v0.3.1958
Rust Version 1.78.0
Vscode Version 1.89.1
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 with the linked reproduction to compare the standard-library benchmark flow with a non-standard benchmarker such as divan. Trace how rust-analyzer decides whether to show the "run benchmark" prompt; done means the prompt appears for supported non-standard benchmarks while preserving the existing standard benchmark behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100