mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
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:
commit
ce36446943
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user