Eliminate Stmt::RuntimeError in favor of crash

This commit is contained in:
Ayaz Hafiz 2022-11-22 18:08:33 -06:00
parent a2f2a18a76
commit 803d7e30e3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
14 changed files with 115 additions and 130 deletions

View file

@ -235,7 +235,7 @@ fn run_expect_pure<'a, W: std::io::Write>(
let sequence = ExpectSequence::new(shared_memory.ptr.cast());
let result: Result<(), (String, u32)> = try_run_jit_function!(lib, expect.name, (), |v: ()| v);
let result: Result<(), (String, _)> = try_run_jit_function!(lib, expect.name, (), |v: ()| v);
let shared_memory_ptr: *const u8 = shared_memory.ptr.cast();
@ -305,7 +305,7 @@ fn run_expect_fx<'a, W: std::io::Write>(
child_memory.set_shared_buffer(lib);
let result: Result<(), (String, u32)> =
let result: Result<(), (String, _)> =
try_run_jit_function!(lib, expect.name, (), |v: ()| v);
if let Err((msg, _)) = result {