Open
Description
openedon Apr 27, 2021
This issue will track the approval and stabilization of the attribute coverage
, needed to give developers a way to "hide" a function from the coverage instrumentation enabled by rustc -Z instrument-coverage
.
The Eq
trait in the std
library implements a marker function that is not meant to be executed, but results in an uncovered region in all rust programs that derive Eq
. This attribute will allow the compiler to skip that function, and remove the uncovered regions.
Unresolved questions
- is it ok that the attribute applied to the crate root, a function, or a module applies to all items within the marked item? So far we do not have such attributes other than the lint level attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)Blocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.Category: A tracking issue for an RFC or an unstable feature.Category: A tracking issue for an RFC or an unstable feature.Status: This is ready to stabilize; it may need a stabilization report and a PRStatus: This is ready to stabilize; it may need a stabilization report and a PRRelevant to the language team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.