We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8cffb2 commit ebb3f83Copy full SHA for ebb3f83
1 file changed
crates/wasmtime/src/runtime/component/func/typed.rs
@@ -3062,7 +3062,8 @@ where
3062
return Err(e);
3063
}
3064
assert!(valid == N);
3065
- Ok(unsafe { core::mem::transmute::<_, Self>(result) })
+ // this is a copy of array_assume_init from stdlib to avoid requiring nightly
3066
+ Ok(unsafe { (&result as *const _ as *const [T; N]).read() })
3067
3068
3069
fn linear_lift_from_memory(
@@ -3102,7 +3103,8 @@ where
3102
3103
3104
3105
3106
3107
3108
3109
3110
0 commit comments