when using profile overrides for "core" and -Zbuild-std
, cargo emits incorrect warning that profile override is unused
#10480
Labels
C-bug
Category: bug
Problem
Cargo prints a
warning: profile package spec `core` in profile `dev` did not match any packages
when aprofile.dev.package.core
section exists inCargo.toml
.The options specified in the
profile.dev.package.core
are used, despite the warning.Command + verbose output showing that the
debug-assertions
is passed torustc
:Cargo.toml content:
Steps
I've created a sample project here: https://github.com/jmesmon/cargo-bug-profile-core. Run it with the command
cargo +nightly check -Zbuild-std=core --target thumbv7em-none-eabihf --verbose
or similar.[profile.dev.package.core] debug-assertions = false
to theCargo.toml
(or some other profile adjustment)cargo +nightly check -Zbuild-std=core --target thumbv7em-none-eabihf --verbose
(or similar)warning: profile package spec `core` in profile `dev` did not match any packages
printed, but thedebug-assertions
option is passed torustc
.Notes
This specific issue is mentioned in #10118 (comment). It may be related to #8328 (which also is regarding this warning, but not for
core
)Version
The text was updated successfully, but these errors were encountered: