rust/library/test/src
Matthias Krüger c04801dbb9
Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDenton
Use `const_error!` when possible

Replace usages of `io::Error::new(io::ErrorKind::Variant, "constant string")` with `io::const_error!(io::ErrorKind::Variant, "constant string")` to avoid allocations when possible. Additionally, fix `&&str` error messages in SGX and missing/misplaced trailing commas in `const_error!`.
2025-02-17 06:37:37 +01:00
..
formatters Use io::const_error! when possible over io::Error::new 2025-02-10 16:20:21 -08:00
helpers test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
stats test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
term Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDenton 2025-02-17 06:37:37 +01:00
bench.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cli.rs fix(libtest): Deprecate '--logfile' 2025-01-24 15:34:18 -06:00
console.rs fix(libtest): Enable Instant on Emscripten targets 2025-02-09 23:51:54 +03:00
event.rs Do fewer passes and generally be more efficient when filtering tests 2022-10-27 21:34:56 -04:00
lib.rs Use io::const_error! when possible over io::Error::new 2025-02-10 16:20:21 -08:00
options.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
stats.rs Fix doc nits 2024-07-26 13:26:33 +01:00
term.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
test_result.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
tests.rs Remove a bunch of emscripten test ignores 2025-01-24 09:25:34 +00:00
time.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
types.rs Reduce merged doctest source code size 2024-08-13 20:14:56 +02:00