Rust 1.80 upcoming warning: unexpected cfg
condition name: coverage_nightly
#370
Labels
C-question
Category: A question
C-upstream-bug
Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
Heya, in the upcoming Rust 1.80, the following attribute will cause some
cargo
commands to fail (at least it causesclippy
onrustc 1.80.0-nightly (7d83a4c13 2024-05-06)
to fail):#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
Details are in this Rust blog post: Automatic checking of cfgs at compile-time
Error Message
The following error message appears when running clippy:
The Fix
Add a
build.rs
with the following:I think that's the right fix, as it got my build to pass.
If that's the right fix, then in
cargo-llvm-cov
it would be handy add it to theREADME.md
as part of set up.The text was updated successfully, but these errors were encountered: