diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2023-07-07 04:33:08 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2023-07-07 04:33:37 -0700 |
| commit | 37fea342ea26bb7042a6acdf683c8210eb2172ff (patch) | |
| tree | 24044cb642d131c13dad12a48be95ce5be6810b5 | |
| parent | 8765f9172750111e0b7af489561fba0e2ef22007 (diff) | |
| download | rust-37fea342ea26bb7042a6acdf683c8210eb2172ff.tar.gz rust-37fea342ea26bb7042a6acdf683c8210eb2172ff.zip | |
Use new std::simd fn in miri tests
Old fn were slightly divergent.
| -rw-r--r-- | src/tools/miri/tests/pass/portable-simd-ptrs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/pass/portable-simd-ptrs.rs b/src/tools/miri/tests/pass/portable-simd-ptrs.rs index 303c99834f5..843bb0284cf 100644 --- a/src/tools/miri/tests/pass/portable-simd-ptrs.rs +++ b/src/tools/miri/tests/pass/portable-simd-ptrs.rs @@ -6,7 +6,7 @@ use std::simd::*; fn main() { // Pointer casts - let _val: Simd<*const u8, 4> = Simd::<*const i32, 4>::splat(ptr::null()).cast_ptr(); + let _val: Simd<*const u8, 4> = Simd::<*const i32, 4>::splat(ptr::null()).cast(); let addrs = Simd::<*const i32, 4>::splat(ptr::null()).expose_addr(); let _ptrs = Simd::<*const i32, 4>::from_exposed_addr(addrs); } |
