Open nazar-pc opened 8 months ago
I can reproduce the same behavior on x86_64-apple-darwin
. As a workaround, these messages can be ignored with RUSTFLAGS='-Aunused-crate-dependencies'
.
Edit: Nevermind, I just had lints.rust.unused_crate_dependencies = "warn"
set in my Cargo.toml
file. Removing this line fixes the issue.
Code
Current output
Desired output
There is no error unless
-Z build-std
is used, which is confusingRationale and extra context
No response
Other cases
No response
Rust Version
Tested two versions with the same result:
Anything else?
I do not see code mentioned in diagnostic in the crate, which adds to confusion.