about summary refs log tree commit diff
path: root/src/tools/rustdoc-gui/tester.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-07 10:06:40 +0000
committerbors <bors@rust-lang.org>2021-05-07 10:06:40 +0000
commite5f83d24aee866a14753a7cedbb4e301dfe5bef5 (patch)
tree945fe7e541caed4bb7b5009eafe67e482b29c213 /src/tools/rustdoc-gui/tester.js
parentac888e8675182c703c2cd097957878faf88dad94 (diff)
parent0b0d293c7c46bdadf80e5304a667e34c53c0cf7e (diff)
downloadrust-e5f83d24aee866a14753a7cedbb4e301dfe5bef5.tar.gz
rust-e5f83d24aee866a14753a7cedbb4e301dfe5bef5.zip
Auto merge of #84797 - richkadel:cover-unreachable-statements, r=tmandry
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 (in [commit 1](https://github.com/rust-lang/rust/pull/84797/commits/0b0d293c7c46bdadf80e5304a667e34c53c0cf7e)).

r? `@tmandry`
cc: `@wesleywiser`
Diffstat (limited to 'src/tools/rustdoc-gui/tester.js')
0 files changed, 0 insertions, 0 deletions