-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
0 / 10 of 1 issue completed
Copy link
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language teamRelevant to the language team
Description
Warning
This main #[coverage(..)]
attribute tracking issue description is quite outdated, and likely needs to be revisited.
Please refer to #134749 for the stabilization issue for the #[coverage(..)]
attribute.
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.
Path to stabilization
Please refer to the stabilization issue: #134749.
samuelcolvin, jsenkpiel-godaddy, JonathanWoollett-Light, meysam81, Defelo and 24 more
Sub-issues
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language teamRelevant to the language team