about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-03-27 10:13:42 +0100
committerGitHub <noreply@github.com>2024-03-27 10:13:42 +0100
commit8a7f285cbc6a6878a359572d751b665a316f3b16 (patch)
treec106128075a3b7cdbd40c95a517e9a5e9576c677 /compiler/rustc_pattern_analysis/src/errors.rs
parent2973f0407682d744decb05eaabd2d90fe8193125 (diff)
parent1cca2529d1c90458080be6cf271a92eedc49d399 (diff)
downloadrust-8a7f285cbc6a6878a359572d751b665a316f3b16.tar.gz
rust-8a7f285cbc6a6878a359572d751b665a316f3b16.zip
Rollup merge of #122860 - Zalathar:unused, r=cjgillot
coverage: Re-enable `UnreachablePropagation` for coverage builds

This is a sequence of 3 related changes:
- Clean up the existing code that scans for unused functions
- Detect functions that were instrumented for coverage, but have had all their coverage statements removed by later MIR transforms (e.g. `UnreachablePropagation`)
- Re-enable `UnreachablePropagation` in coverage builds

Because we now detect functions that have lost their coverage statements, and treat them as unused, we don't need to worry about `UnreachablePropagation` removing all of those statements. This is demonstrated by `tests/coverage/unreachable.rs`.

Fixes #116171.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions