rust/library/test
Pietro Albini 2f7fd2e5f7
add StaticBenchAsTestFn and DynBenchAsTestFn to convert benches to tests
Before this commit, both static and dynamic benches were converted to a
DynTestFn, with a boxed closure that ran the benchmarks exactly once.

While this worked, it conflicted with -Z panic-abort-tests as the flag
does not support dynamic tests. With this change, a StaticBenchFn is
converted to a StaticBenchAsTestFn, avoiding any dynamic test creation.
DynBenchFn is also converted to DynBenchAsTestFn for completeness.
2023-05-26 14:57:38 +02:00
..
src add StaticBenchAsTestFn and DynBenchAsTestFn to convert benches to tests 2023-05-26 14:57:38 +02:00
Cargo.toml Add a sysroot crate to represent the standard library crates 2023-04-25 13:40:36 +02:00