Skip to content

Only allow coverage_attribute when running coverage#175

Merged
makubacki merged 1 commit into
OpenDevicePartnership:mainfrom
makubacki:limit_cov_attr_to_cov
Jul 9, 2026
Merged

Only allow coverage_attribute when running coverage#175
makubacki merged 1 commit into
OpenDevicePartnership:mainfrom
makubacki:limit_cov_attr_to_cov

Conversation

@makubacki

Copy link
Copy Markdown
Collaborator

Supplements the change made to narrow the set of unstable features allowed in commit 599797b by only allowing coverage_attribute when running coverage.

Removes coverage_attribute from allow-features by default and only sets it when running coverage (cargo make coverage). This allows the feature where it is needed and catches any accidental usage of #[coverage(off)] where it is not gated on cfg(coverage_nightly).

Updates all Makefile.toml files that contain a coverage task that use cargo-llvm-cov.

Supplements the change made to narrow the set of unstable features
allowed in commit 599797b by only allowing `coverage_attribute` when
running coverage.

Removes `coverage_attribute` from `allow-features` by default and
only sets it when running coverage (`cargo make coverage`). This
allows the feature where it is needed and catches any accidental usage
of `#[coverage(off)]` where it is not gated on `cfg(coverage_nightly)`.

Updates all Makefile.toml files that contain a coverage task that
use cargo-llvm-cov.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki makubacki self-assigned this Jul 9, 2026
@makubacki
makubacki merged commit 3f79700 into OpenDevicePartnership:main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants