about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-08-30 20:08:13 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-09-11 14:29:09 +1000
commit4f88aa0fbd71b67be4a4910d312015ddc2a654ff (patch)
treed1b1b2143dd9d654aea4c2e7ffb1b7e68f6b5e67 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent525ac15b66473e63782bff4194e06f665003bd4e (diff)
downloadrust-4f88aa0fbd71b67be4a4910d312015ddc2a654ff.tar.gz
rust-4f88aa0fbd71b67be4a4910d312015ddc2a654ff.zip
coverage: Use a stable sort when grouping mapped regions by file
If two or more mappings cover exactly the same region, their relative order
will now be preserved from `get_expressions_and_counter_regions`, rather than
being disturbed by implementation details of an unstable sort.

The current order is: counter mappings, expression mappings, zero mappings.

(LLVM will also perform its own stable sort on these mappings, but that sort
only compares file ID, start location, and `RegionKind`.)
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions