@@ -16,7 +16,7 @@ use crate::option::Option::{None, Some};
1616use crate :: ptr;
1717use crate :: result:: Result ;
1818use crate :: result:: Result :: { Err , Ok } ;
19- #[ cfg( not( miri) ) ] // Miri does not support all SIMD intrinsics
19+ #[ cfg( not( all ( miri, doctest ) ) ) ] // Miri skips SIMD doctests
2020use crate :: simd:: { self , Simd } ;
2121use crate :: slice;
2222
@@ -3540,7 +3540,7 @@ impl<T> [T] {
35403540 /// assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
35413541 /// ```
35423542 #[ unstable( feature = "portable_simd" , issue = "86656" ) ]
3543- #[ cfg( not( miri) ) ] // Miri does not support all SIMD intrinsics
3543+ #[ cfg( not( all ( miri, doctest ) ) ) ] // Miri skips SIMD doctests
35443544 pub fn as_simd < const LANES : usize > ( & self ) -> ( & [ T ] , & [ Simd < T , LANES > ] , & [ T ] )
35453545 where
35463546 Simd < T , LANES > : AsRef < [ T ; LANES ] > ,
@@ -3584,7 +3584,7 @@ impl<T> [T] {
35843584 /// be lifted in a way that would make it possible to see panics from this
35853585 /// method for something like `LANES == 3`.
35863586 #[ unstable( feature = "portable_simd" , issue = "86656" ) ]
3587- #[ cfg( not( miri) ) ] // Miri does not support all SIMD intrinsics
3587+ #[ cfg( not( all ( miri, doctest ) ) ) ] // Miri skips SIMD doctests
35883588 pub fn as_simd_mut < const LANES : usize > ( & mut self ) -> ( & mut [ T ] , & mut [ Simd < T , LANES > ] , & mut [ T ] )
35893589 where
35903590 Simd < T , LANES > : AsMut < [ T ; LANES ] > ,
0 commit comments