diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-07-31 15:42:00 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 15:42:00 +1000 | 
| commit | 5c123c25e36121730634aa59f8a66a5469d4d73f (patch) | |
| tree | 61ca676c3d931b89e0c713d9d6a98a6566cc5f94 /tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff | |
| parent | 8628b78f24c01026d01b82afd3ec91a2019fe647 (diff) | |
| parent | 2e6f4a59226fd82c526df0f61fefc6fea44e7750 (diff) | |
| download | rust-5c123c25e36121730634aa59f8a66a5469d4d73f.tar.gz rust-5c123c25e36121730634aa59f8a66a5469d4d73f.zip | |
Rollup merge of #144663 - Zalathar:empty-span, r=petrochenkov
coverage: Re-land "Enlarge empty spans during MIR instrumentation" This allows us to assume that coverage spans will only be discarded during codegen in very unusual situations. --- This seemingly-simple change has a rather messy history: - rust-lang/rust#140847 - rust-lang/rust#141650 - rust-lang/rust#144298 - rust-lang/rust#144480 Since then, a number of related changes have landed that should make it reasonable to try again: - rust-lang/rust#144530 - rust-lang/rust#144560 - rust-lang/rust#144616 In particular, we have multiple fixes/mitigations, and a confirmed regression test for the original bug that is not triggered by re-landing the changes in this PR.
Diffstat (limited to 'tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff')
| -rw-r--r-- | tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff b/tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff index cf6d85abd80..9b6d2b22087 100644 --- a/tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff +++ b/tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff @@ -6,7 +6,7 @@ + coverage Code { bcb: bcb0 } => $DIR/instrument_coverage.rs:27:1: 27:17 (#0); + coverage Code { bcb: bcb0 } => $DIR/instrument_coverage.rs:28:5: 28:9 (#0); -+ coverage Code { bcb: bcb0 } => $DIR/instrument_coverage.rs:29:2: 29:2 (#0); ++ coverage Code { bcb: bcb0 } => $DIR/instrument_coverage.rs:29:1: 29:2 (#0); + bb0: { + Coverage::VirtualCounter(bcb0); | 
