@@ -50,7 +50,7 @@ nonpoison_and_poison_unwrap_test!(
50
50
// FIXME: On macOS we use a provenance-incorrect implementation and Miri
51
51
// catches that issue with a chance of around 1/1000.
52
52
// 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" ) ) ) ]
54
54
nonpoison_and_poison_unwrap_test ! (
55
55
name: frob,
56
56
test_body: {
@@ -124,7 +124,7 @@ nonpoison_and_poison_unwrap_test!(
124
124
}
125
125
) ;
126
126
127
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
127
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
128
128
nonpoison_and_poison_unwrap_test ! (
129
129
name: test_rw_arc_access_in_unwind,
130
130
test_body: {
@@ -315,7 +315,7 @@ nonpoison_and_poison_unwrap_test!(
315
315
316
316
// FIXME: On macOS we use a provenance-incorrect implementation and Miri catches that issue.
317
317
// 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" ) ) ) ]
319
319
nonpoison_and_poison_unwrap_test ! (
320
320
name: test_downgrade_observe,
321
321
test_body: {
@@ -362,7 +362,7 @@ nonpoison_and_poison_unwrap_test!(
362
362
363
363
// FIXME: On macOS we use a provenance-incorrect implementation and Miri catches that issue.
364
364
// 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" ) ) ) ]
366
366
nonpoison_and_poison_unwrap_test ! (
367
367
name: test_downgrade_atomic,
368
368
test_body: {
@@ -524,7 +524,7 @@ fn new_poisoned_rwlock<T>(value: T) -> RwLock<T> {
524
524
}
525
525
526
526
#[ test]
527
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
527
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
528
528
fn test_into_inner_poison ( ) {
529
529
let m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
530
530
@@ -535,7 +535,7 @@ fn test_into_inner_poison() {
535
535
}
536
536
537
537
#[ test]
538
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
538
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
539
539
fn test_get_cloned_poison ( ) {
540
540
#[ derive( Clone , Eq , PartialEq , Debug ) ]
541
541
struct Cloneable ( i32 ) ;
@@ -549,7 +549,7 @@ fn test_get_cloned_poison() {
549
549
}
550
550
551
551
#[ test]
552
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
552
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
553
553
fn test_get_mut_poison ( ) {
554
554
let mut m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
555
555
@@ -560,7 +560,7 @@ fn test_get_mut_poison() {
560
560
}
561
561
562
562
#[ test]
563
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
563
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
564
564
fn test_set_poison ( ) {
565
565
fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
566
566
where
@@ -582,7 +582,7 @@ fn test_set_poison() {
582
582
}
583
583
584
584
#[ test]
585
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
585
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
586
586
fn test_replace_poison ( ) {
587
587
fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
588
588
where
@@ -604,7 +604,7 @@ fn test_replace_poison() {
604
604
}
605
605
606
606
#[ test]
607
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
607
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
608
608
fn test_rw_arc_poison_wr ( ) {
609
609
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
610
610
let arc2 = arc. clone ( ) ;
@@ -617,7 +617,7 @@ fn test_rw_arc_poison_wr() {
617
617
}
618
618
619
619
#[ test]
620
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
620
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
621
621
fn test_rw_arc_poison_mapped_w_r ( ) {
622
622
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
623
623
let arc2 = arc. clone ( ) ;
@@ -631,7 +631,7 @@ fn test_rw_arc_poison_mapped_w_r() {
631
631
}
632
632
633
633
#[ test]
634
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
634
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
635
635
fn test_rw_arc_poison_ww ( ) {
636
636
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
637
637
assert ! ( !arc. is_poisoned( ) ) ;
@@ -646,7 +646,7 @@ fn test_rw_arc_poison_ww() {
646
646
}
647
647
648
648
#[ test]
649
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
649
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
650
650
fn test_rw_arc_poison_mapped_w_w ( ) {
651
651
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
652
652
let arc2 = arc. clone ( ) ;
@@ -661,7 +661,7 @@ fn test_rw_arc_poison_mapped_w_w() {
661
661
}
662
662
663
663
#[ test]
664
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
664
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
665
665
fn test_rw_arc_no_poison_rr ( ) {
666
666
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
667
667
let arc2 = arc. clone ( ) ;
@@ -675,7 +675,7 @@ fn test_rw_arc_no_poison_rr() {
675
675
}
676
676
677
677
#[ test]
678
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
678
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
679
679
fn test_rw_arc_no_poison_mapped_r_r ( ) {
680
680
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
681
681
let arc2 = arc. clone ( ) ;
@@ -690,7 +690,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
690
690
}
691
691
692
692
#[ test]
693
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
693
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
694
694
fn test_rw_arc_no_poison_rw ( ) {
695
695
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
696
696
let arc2 = arc. clone ( ) ;
@@ -704,7 +704,7 @@ fn test_rw_arc_no_poison_rw() {
704
704
}
705
705
706
706
#[ test]
707
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
707
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
708
708
fn test_rw_arc_no_poison_mapped_r_w ( ) {
709
709
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
710
710
let arc2 = arc. clone ( ) ;
@@ -719,7 +719,7 @@ fn test_rw_arc_no_poison_mapped_r_w() {
719
719
}
720
720
721
721
#[ test]
722
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
722
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
723
723
fn panic_while_mapping_read_unlocked_no_poison ( ) {
724
724
let lock = RwLock :: new ( ( ) ) ;
725
725
@@ -793,7 +793,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
793
793
}
794
794
795
795
#[ test]
796
- #[ cfg_attr ( not ( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
796
+ #[ cfg ( panic = "unwind" ) ] // Requires unwinding support.
797
797
fn panic_while_mapping_write_unlocked_poison ( ) {
798
798
let lock = RwLock :: new ( ( ) ) ;
799
799
0 commit comments