Auto merge of #12655 - ChayimFriedman2:debug-bench-filter-bin-target, r=flodiebold

Ignore the `bin` artifact for `bench` targets

Just like `test`.

Fixes #12645.

I don't know how to test that.
This commit is contained in:
bors 2022-06-30 15:01:42 +00:00
commit ce36446943

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