Skip to content

Commit 979d951

Browse files
Ignore the bin artifact for bench targets
Just like `test`.
1 parent b0102bd commit 979d951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/toolchain.ts

+1-1
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)