rust/compiler/rustc_mir_transform/src/coverage
Zalathar 4690f97099 coverage: Fix an unstable-sort inconsistency in coverage spans
This code was calling `sort_unstable_by`, but failed to impose a total order on
the initial spans. That resulted in unpredictable handling of closure spans,
producing inconsistencies in the coverage maps and in user-visible coverage
reports.

This patch fixes the problem by always sorting closure spans before
otherwise-identical non-closure spans, and also switches to a stable sort in
case the ordering is still not total.
2023-09-18 21:28:56 +10:00
..
test_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
counters.rs coverage: Don't store function_source_hash in BcbCounter::Counter 2023-08-20 12:02:40 +10:00
debug.rs coverage: Replace an unnecessary map with a set 2023-09-16 12:07:35 +10:00
graph.rs when terminating during unwinding, show the reason why 2023-08-24 13:28:26 +02:00
mod.rs Use relative positions inside a SourceFile. 2023-09-03 12:56:10 +00:00
query.rs coverage: In the visitor, track max counter/expression IDs without +1 2023-09-07 18:06:13 +10:00
spans.rs coverage: Fix an unstable-sort inconsistency in coverage spans 2023-09-18 21:28:56 +10:00
tests.rs coverage: Don't store function_source_hash in BcbCounter::Counter 2023-08-20 12:02:40 +10:00