diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-18 21:11:14 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-18 21:28:56 +1000 |
| commit | 4690f97099c2f01a07a8fa272e94e3e5cba61f12 (patch) | |
| tree | bec7eca4753da04fe62f1fbd9f9b8de97802f084 /compiler/rustc_codegen_llvm/src | |
| parent | 078eb1120a3f576598b976d9470701363f48fccc (diff) | |
| download | rust-4690f97099c2f01a07a8fa272e94e3e5cba61f12.tar.gz rust-4690f97099c2f01a07a8fa272e94e3e5cba61f12.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
