Ignore the bin artifact for bench targets

Just like `test`.
This commit is contained in:
Chayim Refael Friedman 2022-06-29 14:16:55 +03:00
parent b0102bd469
commit 979d9511a1

View file

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