Skip to content

Benchmarks don't have a "▶Run" button #21948

@SludgePhD

Description

@SludgePhD

rust-analyzer version: 0.3.2845-standalone

rustc version: rustc 1.94.0 (4a4ef493e 2026-03-02)

editor or extension: vs code

relevant settings: none

code snippet to reproduce:

// benches/bench.rs
fn main() {
    println!("bench");
}

This does not display a "Run" lens, even when the benchmark is configured with harness = false in Cargo.toml (which isn't necessary for integration tests, they always show a "Run" lens).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresA-project-modelproject model and workspace related issuesC-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions