Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report coverage 0 of dead blocks #84797

Merged
merged 1 commit into from
May 7, 2021

Commits on May 1, 2021

  1. 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.
    richkadel committed May 1, 2021
    Configuration menu
    Copy the full SHA
    0b0d293 View commit details
    Browse the repository at this point in the history