about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-04-08 13:26:22 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-04-08 13:28:05 +1000
commit44d1d86124e7229a59a13899a14e468fee9dc923 (patch)
treeb2618cdf3759f71d38f24e6e8cb2d17ab4c1c518 /compiler/rustc_codegen_llvm/src
parentc6c179662d5a6fc0520e05b5c0682dcfc7333f77 (diff)
downloadrust-44d1d86124e7229a59a13899a14e468fee9dc923.tar.gz
rust-44d1d86124e7229a59a13899a14e468fee9dc923.zip
libtest: Pass the test's panic payload as Option instead of Result
Passing a `Result<(), &dyn Any>` to `calc_result` requires awkward code at both
call sites, for no real benefit. It's much easier to just pass the payload as
`Option<&dyn Any>`.

No functional change, except that the owned payload is dropped slightly later.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions