Regression: "unexpected cfg
condition name: coverage_nightly
"
#133775
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-discussion
Category: Discussion or questions that doesn't represent real issues.
L-unexpected_cfgs
Lint: unexpected_cfgs
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Originally discovered in google/zerocopy#2117
Using zerocopy 0.8.11, the following code succeeds
cargo check
onnightly-2024-11-19
but produces a warning onnightly-2024-11-20
:Here's the warning:
If we remove the
#[repr(C)]
attribute, then this succeeds without warning on both toolchains.Here is the output of
cargo expand
both with and without the#[repr(C)]
attribute. You can see that neither includecfg(coverage_nightly)
.With #[repr(C)]
Without #[repr(C)]
Note that, while zerocopy 0.8.11 doesn't emit
coverage_nightly
from its custom derives, it does usecoverage_nightly
in the library itself. You can see the source code for zerocopy 0.8.11 here.The text was updated successfully, but these errors were encountered: