@@ -200,8 +200,8 @@ fn even_stack() {
200200 assert_eq ! ( val, Err ( ( ) ) ) ;
201201}
202202
203- #[ cfg( any( feature = "std" , feature = "alloc" ) ) ]
204203#[ test]
204+ #[ cfg( any( feature = "std" , feature = "alloc" ) ) ]
205205fn even_failing ( ) {
206206 assert ! ( matches!( Box :: try_pin_init( EvenU64 :: new2( 3 ) ) , Err ( Error ) ) ) ;
207207 assert ! ( matches!( Box :: try_init( EvenU64 :: new2( 3 ) ) , Err ( Error ) ) ) ;
@@ -253,8 +253,9 @@ struct BigStruct {
253253 oth : MaybeUninit < u8 > ,
254254}
255255
256- #[ cfg( all( any( feature = "std" , feature = "alloc" ) , not( miri) ) ) ]
257256#[ test]
257+ #[ cfg( any( feature = "std" , feature = "alloc" ) ) ]
258+ #[ cfg_attr( miri, ignore) ]
258259fn big_struct ( ) {
259260 let x = Arc :: init ( init ! ( BigStruct {
260261 buf <- init_zeroed( ) ,
@@ -268,8 +269,9 @@ fn big_struct() {
268269 println ! ( "{x:?}" ) ;
269270}
270271
271- #[ cfg( all( any( feature = "std" , feature = "alloc" ) , not( miri) ) ) ]
272272#[ test]
273+ #[ cfg( any( feature = "std" , feature = "alloc" ) ) ]
274+ #[ cfg_attr( miri, ignore) ]
273275fn with_big_struct ( ) {
274276 #[ allow( unused_attributes) ]
275277 #[ path = "../examples/mutex.rs" ]
@@ -299,13 +301,9 @@ fn with_big_struct() {
299301 }
300302}
301303
302- #[ cfg( all(
303- feature = "alloc" ,
304- not( miri) ,
305- not( NO_ALLOC_FAIL_TESTS ) ,
306- not( target_os = "macos" )
307- ) ) ]
308304#[ test]
305+ #[ cfg( feature = "alloc" ) ]
306+ #[ cfg_attr( any( miri, NO_ALLOC_FAIL_TESTS , target_os = "macos" ) , ignore) ]
309307fn too_big_pinned ( ) {
310308 use core:: alloc:: AllocError ;
311309
0 commit comments