check-cfg does not appear to honor target-spec json #108941
Labels
A-target-specs
Area: Compile-target specifications
C-bug
Category: This is a bug.
F-check-cfg
--check-cfg
--check-cfg=values()
doesn't seem to know that custom targets can extend the set of values.Steps
The following creates a custom spec with a
target_os="ericos"
.cargo new --lib foo
cd foo
rm src/lib.rs
cargo check --target custom.json -Zbuild-std=core -Zcheck-cfg=values
Expected
No warning
Actual
Got the warning:
Meta
cc @Urgau
The text was updated successfully, but these errors were encountered: