@@ -50,7 +50,7 @@ nonpoison_and_poison_unwrap_test!(
5050// FIXME: On macOS we use a provenance-incorrect implementation and Miri
5151// catches that issue with a chance of around 1/1000.
5252// See <https://github.com/rust-lang/rust/issues/121950> for details.
53- #[ cfg_attr ( all( miri, target_os = "macos" ) , ignore ) ]
53+ #[ cfg ( not ( all( miri, target_os = "macos" ) ) ) ]
5454nonpoison_and_poison_unwrap_test ! (
5555 name: frob,
5656 test_body: {
@@ -124,7 +124,7 @@ nonpoison_and_poison_unwrap_test!(
124124 }
125125) ;
126126
127- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
127+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
128128nonpoison_and_poison_unwrap_test ! (
129129 name: test_rw_arc_access_in_unwind,
130130 test_body: {
@@ -315,7 +315,7 @@ nonpoison_and_poison_unwrap_test!(
315315
316316// FIXME: On macOS we use a provenance-incorrect implementation and Miri catches that issue.
317317// See <https://github.com/rust-lang/rust/issues/121950> for details.
318- #[ cfg_attr ( all( miri, target_os = "macos" ) , ignore ) ]
318+ #[ cfg ( not ( all( miri, target_os = "macos" ) ) ) ]
319319nonpoison_and_poison_unwrap_test ! (
320320 name: test_downgrade_observe,
321321 test_body: {
@@ -362,7 +362,7 @@ nonpoison_and_poison_unwrap_test!(
362362
363363// FIXME: On macOS we use a provenance-incorrect implementation and Miri catches that issue.
364364// See <https://github.com/rust-lang/rust/issues/121950> for details.
365- #[ cfg_attr ( all( miri, target_os = "macos" ) , ignore ) ]
365+ #[ cfg ( not ( all( miri, target_os = "macos" ) ) ) ]
366366nonpoison_and_poison_unwrap_test ! (
367367 name: test_downgrade_atomic,
368368 test_body: {
@@ -524,7 +524,7 @@ fn new_poisoned_rwlock<T>(value: T) -> RwLock<T> {
524524}
525525
526526#[ test]
527- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
527+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
528528fn test_into_inner_poison ( ) {
529529 let m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
530530
@@ -535,7 +535,7 @@ fn test_into_inner_poison() {
535535}
536536
537537#[ test]
538- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
538+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
539539fn test_get_cloned_poison ( ) {
540540 #[ derive( Clone , Eq , PartialEq , Debug ) ]
541541 struct Cloneable ( i32 ) ;
@@ -549,7 +549,7 @@ fn test_get_cloned_poison() {
549549}
550550
551551#[ test]
552- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
552+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
553553fn test_get_mut_poison ( ) {
554554 let mut m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
555555
@@ -560,7 +560,7 @@ fn test_get_mut_poison() {
560560}
561561
562562#[ test]
563- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
563+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
564564fn test_set_poison ( ) {
565565 fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
566566 where
@@ -582,7 +582,7 @@ fn test_set_poison() {
582582}
583583
584584#[ test]
585- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
585+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
586586fn test_replace_poison ( ) {
587587 fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
588588 where
@@ -604,7 +604,7 @@ fn test_replace_poison() {
604604}
605605
606606#[ test]
607- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
607+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
608608fn test_rw_arc_poison_wr ( ) {
609609 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
610610 let arc2 = arc. clone ( ) ;
@@ -617,7 +617,7 @@ fn test_rw_arc_poison_wr() {
617617}
618618
619619#[ test]
620- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
620+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
621621fn test_rw_arc_poison_mapped_w_r ( ) {
622622 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
623623 let arc2 = arc. clone ( ) ;
@@ -631,7 +631,7 @@ fn test_rw_arc_poison_mapped_w_r() {
631631}
632632
633633#[ test]
634- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
634+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
635635fn test_rw_arc_poison_ww ( ) {
636636 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
637637 assert ! ( !arc. is_poisoned( ) ) ;
@@ -646,7 +646,7 @@ fn test_rw_arc_poison_ww() {
646646}
647647
648648#[ test]
649- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
649+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
650650fn test_rw_arc_poison_mapped_w_w ( ) {
651651 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
652652 let arc2 = arc. clone ( ) ;
@@ -661,7 +661,7 @@ fn test_rw_arc_poison_mapped_w_w() {
661661}
662662
663663#[ test]
664- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
664+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
665665fn test_rw_arc_no_poison_rr ( ) {
666666 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
667667 let arc2 = arc. clone ( ) ;
@@ -675,7 +675,7 @@ fn test_rw_arc_no_poison_rr() {
675675}
676676
677677#[ test]
678- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
678+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
679679fn test_rw_arc_no_poison_mapped_r_r ( ) {
680680 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
681681 let arc2 = arc. clone ( ) ;
@@ -690,7 +690,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
690690}
691691
692692#[ test]
693- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
693+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
694694fn test_rw_arc_no_poison_rw ( ) {
695695 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
696696 let arc2 = arc. clone ( ) ;
@@ -704,7 +704,7 @@ fn test_rw_arc_no_poison_rw() {
704704}
705705
706706#[ test]
707- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
707+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
708708fn test_rw_arc_no_poison_mapped_r_w ( ) {
709709 let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
710710 let arc2 = arc. clone ( ) ;
@@ -719,7 +719,7 @@ fn test_rw_arc_no_poison_mapped_r_w() {
719719}
720720
721721#[ test]
722- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
722+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
723723fn panic_while_mapping_read_unlocked_no_poison ( ) {
724724 let lock = RwLock :: new ( ( ) ) ;
725725
@@ -793,7 +793,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
793793}
794794
795795#[ test]
796- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
796+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
797797fn panic_while_mapping_write_unlocked_poison ( ) {
798798 let lock = RwLock :: new ( ( ) ) ;
799799
0 commit comments