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 Rollup merge of #115591 - djkoloski:issue_115385, r=cuviper 2023-09-11 21:16:21 +02:00
codegen-units
coverage-map coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
debuginfo Auto merge of #115128 - davidtwco:re-enable-debuginfo-test, r=wesleywiser 2023-09-12 19:39:27 +00:00
incremental
mir-opt make more pretty 2023-09-18 17:29:13 +01:00
pretty Rework no_coverage to coverage(off) 2023-09-08 12:46:06 +01:00
run-coverage coverage: Regression test for inconsistent handling of closure spans 2023-09-18 22:33:05 +10:00
run-coverage-rustdoc Tidy up some awkwardly-placed comments in tests 2023-08-26 14:35:34 +10:00
run-make Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors 2023-09-17 11:45:53 +00:00
run-make-fulldeps Remove EarlyErrorHandler argument from after_analysis callback 2023-09-10 09:44:03 +00:00
run-pass-valgrind
rustdoc Implement new eBNF for codeblock attributes 2023-09-15 21:32:28 +02:00
rustdoc-gui Migrate GUI colors test to original CSS color format 2023-09-16 11:54:25 +02:00
rustdoc-js Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
rustdoc-js-std Add tests for type-based search 2023-09-01 15:16:11 +02:00
rustdoc-json Fix rustdoc-json tests 2023-08-23 11:52:49 -07:00
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 Auto merge of #115677 - matthewjasper:let-expr-recovery, r=b-naber 2023-09-14 19:56:55 +00:00
COMPILER_TESTS.md