@@ -16,7 +16,7 @@ use crate::option::Option::{None, Some};
16
16
use crate :: ptr;
17
17
use crate :: result:: Result ;
18
18
use 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
20
20
use crate :: simd:: { self , Simd } ;
21
21
use crate :: slice;
22
22
@@ -3540,7 +3540,7 @@ impl<T> [T] {
3540
3540
/// assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
3541
3541
/// ```
3542
3542
#[ 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
3544
3544
pub fn as_simd < const LANES : usize > ( & self ) -> ( & [ T ] , & [ Simd < T , LANES > ] , & [ T ] )
3545
3545
where
3546
3546
Simd < T , LANES > : AsRef < [ T ; LANES ] > ,
@@ -3584,7 +3584,7 @@ impl<T> [T] {
3584
3584
/// be lifted in a way that would make it possible to see panics from this
3585
3585
/// method for something like `LANES == 3`.
3586
3586
#[ 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
3588
3588
pub fn as_simd_mut < const LANES : usize > ( & mut self ) -> ( & mut [ T ] , & mut [ Simd < T , LANES > ] , & mut [ T ] )
3589
3589
where
3590
3590
Simd < T , LANES > : AsMut < [ T ; LANES ] > ,
0 commit comments