We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e0321 commit bdfe0e8Copy full SHA for bdfe0e8
tests/ui/wasm/simd-to-array-80108.rs
@@ -10,6 +10,8 @@ pub struct Vector([i32; 4]);
10
11
impl Vector {
12
pub const fn to_array(self) -> [i32; 4] {
13
- self.0
+ // This used to just be `.0`, but that was banned in
14
+ // <https://github.com/rust-lang/compiler-team/issues/838>
15
+ unsafe { std::mem::transmute(self) }
16
}
17
0 commit comments