We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f348f commit 561697eCopy full SHA for 561697e
1 file changed
crates/wasmtime/src/runtime/component/func/typed.rs
@@ -2958,7 +2958,8 @@ where
2958
return Err(e);
2959
}
2960
assert!(valid == N);
2961
- Ok(unsafe { core::mem::transmute::<_, Self>(result) })
+ // this is a copy of array_assume_init from stdlib to avoid requiring nightly
2962
+ Ok(unsafe { (&result as *const _ as *const [T; N]).read() })
2963
2964
2965
fn linear_lift_from_memory(
@@ -2998,7 +2999,8 @@ where
2998
2999
3000
3001
3002
3003
3004
3005
3006
0 commit comments