about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2023-05-26 14:49:38 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2023-05-26 14:53:43 +0200
commitb1d60bc076f1ab84fa5b75e1bc34ec3fac3d169d (patch)
treec0a1b7cd8e942a30186049119de8b1c917def3b8 /compiler/rustc_codegen_llvm/src/errors.rs
parent776f22292fb5c2cc45f029d4b754662120732a6a (diff)
downloadrust-b1d60bc076f1ab84fa5b75e1bc34ec3fac3d169d.tar.gz
rust-b1d60bc076f1ab84fa5b75e1bc34ec3fac3d169d.zip
refactor executing tests to centralize actually invoking tests
Before this commit, tests were invoked in multiple places, especially
due to `-Z panic-abort-tests`, and adding a new test kind meant having
to chase down and update all these places.

This commit creates a new Runnable enum, and its children RunnableTest
and RunnableBench. The rest of the harness will now pass around the enum
rather than constructing and passing around boxed functions. The enum
has two children enums because invoking tests and invoking benchmarks
requires different parameters.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions