rust/compiler/rustc_feature/src
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
..
accepted.rs Stabilize asm_sym 2022-10-17 22:38:37 +01:00
active.rs Stabilize asm_sym 2022-10-17 22:38:37 +01:00
builtin_attrs.rs Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
lib.rs get_attr should check that no duplicates are allowed 2022-09-06 14:16:54 +08:00
removed.rs replace stabilization placeholders 2022-09-26 10:13:44 +02:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00