You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#84797 - richkadel:cover-unreachable-statements, r=tmandry
Report coverage `0` of dead blocks
Fixes: rust-lang#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.
I also addressed an outstanding issue/request to move coverage tests from run-make-fulldeps to run-make (in commit 2).
Fixes: rust-lang#83830
r? ``@tmandry``
cc: ``@wesleywiser``
0 commit comments