Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ce36446

Browse files
committed
Auto merge of rust-lang#12655 - ChayimFriedman2:debug-bench-filter-bin-target, r=flodiebold
Ignore the `bin` artifact for `bench` targets Just like `test`. Fixes rust-lang#12645. I don't know how to test that.
2 parents 6420840 + 979d951 commit ce36446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/toolchain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Cargo {
3939
}
4040

4141
const result: ArtifactSpec = { cargoArgs: cargoArgs };
42-
if (cargoArgs[0] === "test") {
42+
if (cargoArgs[0] === "test" || cargoArgs[0] === "bench") {
4343
// for instance, `crates\rust-analyzer\tests\heavy_tests\main.rs` tests
4444
// produce 2 artifacts: {"kind": "bin"} and {"kind": "test"}
4545
result.filter = (artifacts) => artifacts.filter((it) => it.isTest);

0 commit comments

Comments
 (0)