diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-05-26 12:46:54 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-05-26 14:57:38 +0200 |
| commit | 2f7fd2e5f7b42a2e4407a56862006165a4a90703 (patch) | |
| tree | c7b5ac914430a4cb2ffc7e0e7caa4de02150d387 /compiler/rustc_codegen_llvm/src | |
| parent | fa451fe6db8d7feffdaab872661d0b557e8f7be2 (diff) | |
| download | rust-2f7fd2e5f7b42a2e4407a56862006165a4a90703.tar.gz rust-2f7fd2e5f7b42a2e4407a56862006165a4a90703.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
