rust/tests
Matthias Krüger 3cf5a6beaa
Rollup merge of #115930 - Zalathar:spans-bug, r=compiler-errors
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 PR 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.

---

In addition to the fix itself, this PR also contains a cleanup to the comparison function that I was working on when I discovered the bug.
2023-09-19 01:29:42 +02:00
..
assembly
auxiliary
codegen
codegen-units
coverage-map coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
debuginfo
incremental
mir-opt make more pretty 2023-09-18 17:29:13 +01:00
pretty
run-coverage coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
run-coverage-rustdoc
run-make Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors 2023-09-17 11:45:53 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Update tests for custom_code_classes_in_docs feature 2023-09-17 15:11:44 +02:00
ui Rollup merge of #115879 - clubby789:migrate-hir-typeck-cast, r=compiler-errors 2023-09-19 01:29:42 +02:00
ui-fulldeps
COMPILER_TESTS.md