disable portable SIMD tests in Miri

This commit is contained in:
Ralf Jung 2021-11-14 11:56:52 -05:00
parent 1b12d01903
commit 60595f7bde
2 changed files with 4 additions and 0 deletions

View file

@ -402,11 +402,13 @@ pub mod arch {
#[allow(missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe)]
#[allow(rustdoc::bare_urls)]
#[unstable(feature = "portable_simd", issue = "86656")]
#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics
#[cfg(not(bootstrap))]
mod core_simd;
#[doc = include_str!("../../portable-simd/crates/core_simd/src/core_simd_docs.md")]
#[unstable(feature = "portable_simd", issue = "86656")]
#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics
#[cfg(not(bootstrap))]
pub mod simd {
#[unstable(feature = "portable_simd", issue = "86656")]

View file

@ -1,3 +1,5 @@
#![cfg(not(miri))] // Miri does not support all SIMD intrinsics
use core::simd::f32x4;
#[test]