1
Fork 0
rust/compiler/rustc_mir/src
bors 289ada5ed4 Auto merge of #85385 - richkadel:simpler-simplify-with-coverage, r=wesleywiser
Reland - 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.

Note, this PR relands an earlier, reverted PR that failed when compiling
generators. The prior issues with generators has been resolved and a new
test was added to prevent future regressions.

Check out the resulting changes to test coverage of dead blocks in the
test coverage reports in this PR.

r? `@tmandry`
fyi: `@wesleywiser`
2021-06-04 10:18:54 +00:00
..
borrow_check Add Ty::is_union predicate and use it 2021-06-02 17:09:17 +02:00
const_eval Emit a hard error when a panic occurs during const-eval 2021-05-30 11:59:54 -05:00
dataflow Add Ty::is_union predicate and use it 2021-06-02 17:09:17 +02:00
interpret Rollup merge of #85963 - m-ou-se:constructor-type-name, r=yaahc 2021-06-04 13:43:02 +09:00
monomorphize don't trim paths in collector PME message 2021-05-27 22:28:04 +02:00
transform Auto merge of #85385 - richkadel:simpler-simplify-with-coverage, r=wesleywiser 2021-06-04 10:18:54 +00:00
util Remove CrateNum::ReservedForIncrCompCache 2021-05-30 14:33:16 +02:00
lib.rs Remove unused feature gates 2021-05-31 13:55:43 +02:00
shim.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00