Skip to content

Commit

Permalink
Auto merge of #124507 - Zalathar:coverage-level, r=compiler-errors
Browse files Browse the repository at this point in the history
coverage: Replace boolean options with a `CoverageLevel` enum

After #123409, and some discussion at rust-lang/rust#79649 (comment) and #124120, it became clear to me that we should have a unified concept of “coverage level”, instead of having several separate boolean flags that aren't actually independent.

This PR therefore introduces a `CoverageLevel` enum, to replace the existing boolean flags for `branch` and `mcdc`.

The `no-branch` value (for `-Zcoverage-options`) has been renamed to `block`, instructing the compiler to only instrument for block coverage, with no branch coverage or MD/DC instrumentation.

`@rustbot` label +A-code-coverage
cc `@ZhuUx` `@Lambdaris` `@RenjiSann`
  • Loading branch information
bors committed Apr 30, 2024
2 parents 3cf2c78 + 108638f commit e50001e
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e50001e

Please sign in to comment.