@@ -168,7 +168,7 @@ fn memory_grow(
168168    mut  instance :  Pin < & mut  Instance > , 
169169    delta :  u64 , 
170170    memory_index :  u32 , 
171- )  -> Result < Option < AllocationSize > ,   TrapReason >  { 
171+ )  -> Result < Option < AllocationSize > >  { 
172172    let  memory_index = DefinedMemoryIndex :: from_u32 ( memory_index) ; 
173173    let  module = instance. env_module ( ) ; 
174174    let  page_size_log2 = module. memories [ module. memory_index ( memory_index) ] . page_size_log2 ; 
@@ -1540,30 +1540,30 @@ fn cont_new(
15401540    func :  * mut  u8 , 
15411541    param_count :  u32 , 
15421542    result_count :  u32 , 
1543- )  -> Result < Option < AllocationSize > ,   TrapReason >  { 
1543+ )  -> Result < Option < AllocationSize > >  { 
15441544    let  ans =
15451545        crate :: vm:: stack_switching:: cont_new ( store,  instance,  func,  param_count,  result_count) ?; 
15461546    Ok ( Some ( AllocationSize ( ans. cast :: < u8 > ( )  as  usize ) ) ) 
15471547} 
15481548
15491549#[ cfg( feature = "gc" ) ]  
1550- unsafe   fn  get_instance_id ( _store :  & mut  dyn  VMStore ,  instance :  Pin < & mut  Instance > )  -> u32  { 
1550+ fn  get_instance_id ( _store :  & mut  dyn  VMStore ,  instance :  Pin < & mut  Instance > )  -> u32  { 
15511551    instance. id ( ) . as_u32 ( ) 
15521552} 
15531553
15541554#[ cfg( feature = "gc" ) ]  
1555- unsafe   fn  throw_ref ( 
1555+ fn  throw_ref ( 
15561556    mut  store :  & mut  dyn  VMStore , 
15571557    _instance :  Pin < & mut  Instance > , 
15581558    exnref :  u32 , 
15591559)  -> Result < ( ) ,  TrapReason >  { 
1560-     use  crate :: { AsStoreOpaqueMut ,  vm :: ExceptionTombstone } ; 
1560+     use  crate :: AsStoreOpaqueMut ; 
15611561
15621562    let  exnref = VMGcRef :: from_raw_u32 ( exnref) . ok_or_else ( || Trap :: NullReference ) ?; 
15631563    let  exnref = store. unwrap_gc_store_mut ( ) . clone_gc_ref ( & exnref) ; 
15641564    let  exnref = exnref
15651565        . into_exnref ( & * store. unwrap_gc_store ( ) . gc_heap ) 
15661566        . expect ( "gc ref should be an exception object" ) ; 
15671567    store. as_store_opaque_mut ( ) . set_pending_exception ( exnref) ; 
1568-     Err ( TrapReason :: User ( ExceptionTombstone . into ( ) ) ) 
1568+     Err ( TrapReason :: Exception ) 
15691569} 
0 commit comments