diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-11-23 12:50:40 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-12-08 22:40:49 +1100 |
| commit | d90fd027c887247caa501db5f49352fdfab769d9 (patch) | |
| tree | 07969117a9a6ae2fe624a8692ba261f195459ff9 /tests/codegen/src-hash-algorithm | |
| parent | 98166358a99aea4ded1a42a3c113aac764c752ed (diff) | |
| download | rust-d90fd027c887247caa501db5f49352fdfab769d9.tar.gz rust-d90fd027c887247caa501db5f49352fdfab769d9.zip | |
coverage: Use `SpanMarker` to mark the full condition of `if !`
When MIR is built for an if-not expression, the `!` part of the condition doesn't correspond to any MIR statement, so coverage instrumentation normally can't see it. We can fix that by deliberately injecting a dummy statement whose sole purpose is to associate that span with its enclosing block.
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
