about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2023-05-26 12:46:54 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2023-05-26 14:57:38 +0200
commit2f7fd2e5f7b42a2e4407a56862006165a4a90703 (patch)
treec7b5ac914430a4cb2ffc7e0e7caa4de02150d387 /compiler/rustc_codegen_llvm/src
parentfa451fe6db8d7feffdaab872661d0b557e8f7be2 (diff)
downloadrust-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