rust-lang / rust-lang/rust-analyzer

Not showing "run benchmark" for non-std benchmarks

Open
#17,274 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Repro

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.

image

Rust Analyzer Version v0.3.1958
Rust Version 1.78.0
Vscode Version 1.89.1

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.