@@ -1172,7 +1172,7 @@ fn test_rotate_right() {
11721172}
11731173
11741174#[ test]
1175- #[ cfg ( not ( miri) ) ] // Miri is too slow
1175+ #[ cfg_attr ( miri, ignore ) ] // Miri is too slow
11761176fn brute_force_rotate_test_0 ( ) {
11771177 // In case of edge cases involving multiple algorithms
11781178 let n = 300 ;
@@ -1291,7 +1291,7 @@ fn sort_unstable() {
12911291
12921292#[ test]
12931293#[ cfg( not( target_arch = "wasm32" ) ) ]
1294- #[ cfg ( not ( miri) ) ] // Miri is too slow
1294+ #[ cfg_attr ( miri, ignore ) ] // Miri is too slow
12951295fn partition_at_index ( ) {
12961296 use core:: cmp:: Ordering :: { Equal , Greater , Less } ;
12971297 use rand:: rngs:: StdRng ;
@@ -1494,7 +1494,7 @@ pub mod memchr {
14941494}
14951495
14961496#[ test]
1497- #[ cfg ( not ( miri) ) ] // Miri does not compute a maximal `mid` for `align_offset`
1497+ #[ cfg_attr ( miri, ignore ) ] // Miri does not compute a maximal `mid` for `align_offset`
14981498fn test_align_to_simple ( ) {
14991499 let bytes = [ 1u8 , 2 , 3 , 4 , 5 , 6 , 7 ] ;
15001500 let ( prefix, aligned, suffix) = unsafe { bytes. align_to :: < u16 > ( ) } ;
@@ -1518,7 +1518,7 @@ fn test_align_to_zst() {
15181518}
15191519
15201520#[ test]
1521- #[ cfg ( not ( miri) ) ] // Miri does not compute a maximal `mid` for `align_offset`
1521+ #[ cfg_attr ( miri, ignore ) ] // Miri does not compute a maximal `mid` for `align_offset`
15221522fn test_align_to_non_trivial ( ) {
15231523 #[ repr( align( 8 ) ) ] struct U64 ( u64 , u64 ) ;
15241524 #[ repr( align( 8 ) ) ] struct U64U64U32 ( u64 , u64 , u32 ) ;
0 commit comments