mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
Ignore the bin
artifact for bench
targets
Just like `test`.
This commit is contained in:
parent
b0102bd469
commit
979d9511a1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue