Files
rust/compiler/rustc_mir/src/transform
Rich Kadel 0b0d293c7c Report coverage 0 of dead blocks
Fixes: #84018

With `-Z instrument-coverage`, coverage reporting of dead blocks
(for example, blocks dropped because a conditional branch is dropped,
based on const evaluation) is now supported.

If `instrument-coverage` is enabled, `simplify::remove_dead_blocks()`
finds all dropped coverage `Statement`s and adds their `code_region`s as
`Unreachable` coverage `Statement`s to the `START_BLOCK`, so they are
still included in the coverage map.

Check out the resulting changes in the test coverage reports in this PR.
2021-05-01 15:04:48 -07:00
..
2021-05-01 15:04:48 -07:00
2021-04-20 09:30:28 -04:00
2021-04-06 12:35:41 +01:00
2021-01-16 18:56:37 -05:00
2021-05-01 15:04:48 -07:00
2021-05-01 15:04:48 -07:00
2021-03-24 13:00:36 -04:00
2021-05-01 15:04:48 -07:00
2021-03-09 19:31:31 +00:00