cargo check --all-targets
gives bad error details when tests are disabled but benches aren't
#14571
Labels
A-build-execution
Area: anything dealing with executing the compiler
A-cargo-targets
Area: selection and definition of targets (lib, bins, examples, tests, benches)
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
When running
cargo check --all-targets
on a crate that can't compile tests (e.g. for an embedded target) where you have explicitly disabled tests viatest = false
, the build failure does not mention that it's trying to build a bench target, making it appear like--all-targets
is just ignoring thetest = false
.cargo metadata
also doesn't mention anything about whether a bench target is enabled or not.Steps
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.82.0-nightly (8f40fc5 2024-08-21)
release: 1.82.0-nightly
commit-hash: 8f40fc5
commit-date: 2024-08-21
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: NixOS 24.5.0 [64-bit]
The text was updated successfully, but these errors were encountered: