File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
crates/wasmtime/src/runtime Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ impl TestFileCompiler {
292292 let ext_func = & cursor. func . dfg . ext_funcs [ * func_ref] ;
293293 let hostcall_addr = match & ext_func. name {
294294 ExternalName :: TestCase ( tc) if tc. raw ( ) == b"__cranelift_throw" => {
295- Some ( __cranelift_throw as usize )
295+ Some ( __cranelift_throw as * const ( ) as usize )
296296 }
297297 _ => None ,
298298 } ;
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ mod tests {
594594 Ok ( ( ) )
595595 } ,
596596 |replayer| {
597- replayer. next_event_and ( |e : LowerFlatEntryEvent | Ok ( ( ) ) ) ?;
597+ replayer. next_event_and ( |_e : LowerFlatEntryEvent | Ok ( ( ) ) ) ?;
598598 replayer. next_event_and ( |e : LowerFlatReturnEvent | {
599599 assert ! ( e. 0 . ret( ) . is_ok( ) ) ;
600600 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ fn memory_grow(
233233 // Record/replay hook for memory.grow
234234 rr:: core_hooks:: record_and_replay_validate_memory_grow(
235235 match & result {
236- Some ( a) => a. 0 as u32 ,
236+ Some ( a) => u32 :: try_from ( a. 0 ) ? ,
237237 None => u32 :: MAX ,
238238 } ,
239239 store,
@@ -309,7 +309,7 @@ unsafe fn table_grow_func_ref(
309309 // Record/replay hook for table.grow
310310 rr:: core_hooks:: record_and_replay_validate_table_grow(
311311 match & result {
312- Some ( a) => a. 0 as u32 ,
312+ Some ( a) => u32 :: try_from ( a. 0 ) ? ,
313313 None => u32 :: MAX ,
314314 } ,
315315 store,
@@ -352,7 +352,7 @@ fn table_grow_gc_ref(
352352 // Record/replay hook for table.grow
353353 rr:: core_hooks:: record_and_replay_validate_table_grow(
354354 match & result {
355- Some ( a) => a. 0 as u32 ,
355+ Some ( a) => u32 :: try_from ( a. 0 ) ? ,
356356 None => u32 :: MAX ,
357357 } ,
358358 store,
@@ -394,7 +394,7 @@ unsafe fn table_grow_cont_obj(
394394 // Record/replay hook for table.grow
395395 rr:: core_hooks:: record_and_replay_validate_table_grow(
396396 match & result {
397- Some ( a) => a. 0 as u32 ,
397+ Some ( a) => u32 :: try_from ( a. 0 ) ? ,
398398 None => u32 :: MAX ,
399399 } ,
400400 store,
You can’t perform that action at this time.
0 commit comments