mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Eliminate Stmt::RuntimeError in favor of crash
This commit is contained in:
parent
a2f2a18a76
commit
803d7e30e3
14 changed files with 115 additions and 130 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue