rust/compiler/rustc_builtin_macros/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
..
assert Fix docs in compiler/rustc_builtin_macros/src/assert/context.rs 2022-09-29 16:49:20 +09:00
deriving Mark derived StructuralEq as automatically derived. 2022-10-15 15:16:32 +00:00
format Update doc comments. 2022-09-27 13:31:52 +02:00
format_foreign
asm.rs Use AttrVec in more places. 2022-08-22 07:35:33 +10:00
assert.rs
cfg_accessible.rs
cfg_eval.rs Emit an error instead of reconstructing token stream. 2022-09-13 19:47:50 +02:00
cfg.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
cmdline_attrs.rs make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
compile_error.rs
concat_bytes.rs Remove the symbol from ast::LitKind::Err. 2022-08-23 16:56:24 +10:00
concat_idents.rs
concat.rs Remove the symbol from ast::LitKind::Err. 2022-08-23 16:56:24 +10:00
derive.rs make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
edition_panic.rs
env.rs
format_foreign.rs
format.rs Fix format_args capture for macro expanded format strings 2022-09-30 17:40:14 +01:00
global_allocator.rs Replace rustc_data_structures::thin_vec::ThinVec with thin_vec::ThinVec. 2022-08-29 15:42:13 +10:00
lib.rs Change feature name to is_some_and 2022-10-01 11:45:52 -05:00
log_syntax.rs
proc_macro_harness.rs Use AttrVec in more places. 2022-08-22 07:35:33 +10:00
source_util.rs
standard_library_imports.rs Replace rustc_data_structures::thin_vec::ThinVec with thin_vec::ThinVec. 2022-08-29 15:42:13 +10:00
test_harness.rs Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
test.rs Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
trace_macros.rs
util.rs