Skip to content

Commit 060c7ce

Browse files
committed
coverage: -Zcoverage-options=branch is no longer a placeholder
1 parent 5fb1f61 commit 060c7ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_session/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub enum InstrumentCoverage {
146146
/// Individual flag values controlled by `-Z coverage-options`.
147147
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
148148
pub struct CoverageOptions {
149-
/// Add branch coverage instrumentation (placeholder flag; not yet implemented).
149+
/// Add branch coverage instrumentation.
150150
pub branch: bool,
151151
}
152152

src/doc/rustc/src/instrument-coverage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ This unstable option provides finer control over some aspects of coverage
352352
instrumentation. Pass one or more of the following values, separated by commas.
353353

354354
- `branch` or `no-branch`
355-
- Placeholder for potential branch coverage support in the future.
355+
- Enables or disables branch coverage instrumentation.
356356

357357
## Other references
358358

src/doc/unstable-book/src/compiler-flags/coverage-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This option controls details of the coverage instrumentation performed by
55

66
Multiple options can be passed, separated by commas. Valid options are:
77

8-
- `branch` or `no-branch`: Placeholder for future branch coverage support.
8+
- `branch` or `no-branch`: Enables or disables branch coverage instrumentation.

0 commit comments

Comments
 (0)