rust/src/test
Yuki Okushi 779418deb4
Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726
Sort tests at compile time, not at startup

Recently, another Miri user was trying to run `cargo miri test` on the crate `iced-x86` with `--features=code_asm,mvex`. This configuration has a startup time of ~18 minutes. That's ~18 minutes before any tests even start to run. The fact that this crate has over 26,000 tests and Miri is slow makes a lot of code which is otherwise a bit sloppy but fine into a huge runtime issue.

Sorting the tests when the test harness is created instead of at startup time knocks just under 4 minutes out of those ~18 minutes. I have ways to remove most of the rest of the startup time, but this change requires coordinating changes of both the compiler and libtest, so I'm sending it separately.

(except for doctests, because there is no compile-time harness)
2022-10-24 19:32:25 +09:00
..
assembly Stabilize asm_sym 2022-10-17 22:38:37 +01:00
auxiliary
codegen Introduce deduced parameter attributes, and use them for deducing readonly on 2022-10-21 02:33:15 -07:00
codegen-units Bless cgu test. 2022-09-23 18:42:14 +02:00
debuginfo Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
incremental Auto merge of #102700 - oli-obk:0xDEAD_TAIT, r=compiler-errors 2022-10-13 22:39:05 +00:00
mir-opt Bless tests 2022-10-13 17:24:27 +01:00
pretty Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
run-make Rollup merge of #103178 - ferrocene:pa-coverage-reports-tests, r=Mark-Simulacrum 2022-10-19 07:15:31 +02:00
run-make-fulldeps Fixup a few tests needing asm support 2022-10-19 11:34:00 -07:00
run-pass-valgrind Fix test 2022-10-13 17:46:33 +01:00
rustdoc Rollup merge of #103254 - fmease:fix-24183, r=GuillaumeGomez 2022-10-23 14:48:16 -07:00
rustdoc-gui Use functions for jump-to-def-background rustodoc GUI test 2022-10-23 15:40:56 +02:00
rustdoc-js
rustdoc-js-std Update asrawfd.js. 2022-08-29 08:31:42 -07:00
rustdoc-json Rustdoc-Json: List impls for primitives 2022-09-26 18:06:48 +01:00
rustdoc-ui Introduce dedicated -Zdylib-lto flag for enabling LTO on dylibs 2022-10-23 13:48:03 +02:00
ui Rollup merge of #103414 - compiler-errors:rpit-print-lt, r=cjgillot 2022-10-23 14:48:17 -07:00
ui-fulldeps Update translation tests 2022-10-23 10:09:44 +02:00
COMPILER_TESTS.md