diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-18 17:29:33 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-20 10:15:14 -0700 |
| commit | 25a804ab062582bba55bf5cd9844bd13aae00f21 (patch) | |
| tree | cb9580d1d0d0e89866f8fc6132ce290aecb3cf17 | |
| parent | 08b816ff18347031b1160f1257cde2008c3c366e (diff) | |
| download | rust-25a804ab062582bba55bf5cd9844bd13aae00f21.tar.gz rust-25a804ab062582bba55bf5cd9844bd13aae00f21.zip | |
...and wasm tests too
| -rw-r--r-- | tests/ui/wasm/simd-to-array-80108.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/wasm/simd-to-array-80108.rs b/tests/ui/wasm/simd-to-array-80108.rs index c7f8585eaa4..f6b368992be 100644 --- a/tests/ui/wasm/simd-to-array-80108.rs +++ b/tests/ui/wasm/simd-to-array-80108.rs @@ -10,6 +10,8 @@ pub struct Vector([i32; 4]); impl Vector { pub const fn to_array(self) -> [i32; 4] { - self.0 + // This used to just be `.0`, but that was banned in + // <https://github.com/rust-lang/compiler-team/issues/838> + unsafe { std::mem::transmute(self) } } } |
