diff --git a/rust-version b/rust-version index e36763cc7a..f3e10689ff 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -80deabd0987201e1b8d060400f50e03309a0105e +f3b9d47a46c6d237665801155aa3e26c5f49958b diff --git a/tests/pass/intrinsics-x86-aes-vaes.rs b/tests/pass/intrinsics-x86-aes-vaes.rs index 55d1bacdf4..7363c75361 100644 --- a/tests/pass/intrinsics-x86-aes-vaes.rs +++ b/tests/pass/intrinsics-x86-aes-vaes.rs @@ -9,7 +9,7 @@ //@ignore-target-wasm32 //@compile-flags: -C target-feature=+aes,+vaes,+avx512f -#![feature(avx512_target_feature, stdsimd)] +#![feature(avx512_target_feature, stdarch_x86_avx512)] use core::mem::transmute; #[cfg(target_arch = "x86")] diff --git a/tests/pass/intrinsics-x86-avx512.rs b/tests/pass/intrinsics-x86-avx512.rs index 394412a235..66bfcb20f1 100644 --- a/tests/pass/intrinsics-x86-avx512.rs +++ b/tests/pass/intrinsics-x86-avx512.rs @@ -10,7 +10,7 @@ //@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq #![feature(avx512_target_feature)] -#![feature(stdsimd)] +#![feature(stdarch_x86_avx512)] #[cfg(target_arch = "x86")] use std::arch::x86::*; diff --git a/tests/pass/issues/issue-miri-3282-struct-tail-normalize.rs b/tests/pass/issues/issue-miri-3282-struct-tail-normalize.rs new file mode 100644 index 0000000000..2a31df8384 --- /dev/null +++ b/tests/pass/issues/issue-miri-3282-struct-tail-normalize.rs @@ -0,0 +1,20 @@ +// regression test for an ICE: https://github.com/rust-lang/miri/issues/3282 + +trait Id { + type Assoc: ?Sized; +} + +impl Id for T { + type Assoc = T; +} + +#[repr(transparent)] +struct Foo { + field: ::Assoc, +} + +fn main() { + let x = unsafe { std::mem::transmute::)>(|_| ()) }; + let foo: &Foo = unsafe { &*("uwu" as *const str as *const Foo) }; + x(foo); +}