@@ -258,7 +258,6 @@ fn test_swap_remove() {
258
258
259
259
#[ test]
260
260
#[ should_panic]
261
- #[ cfg( not( miri) ) ] // Miri does not support panics
262
261
fn test_swap_remove_fail ( ) {
263
262
let mut v = vec ! [ 1 ] ;
264
263
let _ = v. swap_remove ( 0 ) ;
@@ -632,7 +631,6 @@ fn test_insert() {
632
631
633
632
#[ test]
634
633
#[ should_panic]
635
- #[ cfg( not( miri) ) ] // Miri does not support panics
636
634
fn test_insert_oob ( ) {
637
635
let mut a = vec ! [ 1 , 2 , 3 ] ;
638
636
a. insert ( 4 , 5 ) ;
@@ -657,7 +655,6 @@ fn test_remove() {
657
655
658
656
#[ test]
659
657
#[ should_panic]
660
- #[ cfg( not( miri) ) ] // Miri does not support panics
661
658
fn test_remove_fail ( ) {
662
659
let mut a = vec ! [ 1 ] ;
663
660
let _ = a. remove ( 0 ) ;
@@ -939,7 +936,6 @@ fn test_windowsator() {
939
936
940
937
#[ test]
941
938
#[ should_panic]
942
- #[ cfg( not( miri) ) ] // Miri does not support panics
943
939
fn test_windowsator_0 ( ) {
944
940
let v = & [ 1 , 2 , 3 , 4 ] ;
945
941
let _it = v. windows ( 0 ) ;
@@ -964,7 +960,6 @@ fn test_chunksator() {
964
960
965
961
#[ test]
966
962
#[ should_panic]
967
- #[ cfg( not( miri) ) ] // Miri does not support panics
968
963
fn test_chunksator_0 ( ) {
969
964
let v = & [ 1 , 2 , 3 , 4 ] ;
970
965
let _it = v. chunks ( 0 ) ;
@@ -989,7 +984,6 @@ fn test_chunks_exactator() {
989
984
990
985
#[ test]
991
986
#[ should_panic]
992
- #[ cfg( not( miri) ) ] // Miri does not support panics
993
987
fn test_chunks_exactator_0 ( ) {
994
988
let v = & [ 1 , 2 , 3 , 4 ] ;
995
989
let _it = v. chunks_exact ( 0 ) ;
@@ -1014,7 +1008,6 @@ fn test_rchunksator() {
1014
1008
1015
1009
#[ test]
1016
1010
#[ should_panic]
1017
- #[ cfg( not( miri) ) ] // Miri does not support panics
1018
1011
fn test_rchunksator_0 ( ) {
1019
1012
let v = & [ 1 , 2 , 3 , 4 ] ;
1020
1013
let _it = v. rchunks ( 0 ) ;
@@ -1039,7 +1032,6 @@ fn test_rchunks_exactator() {
1039
1032
1040
1033
#[ test]
1041
1034
#[ should_panic]
1042
- #[ cfg( not( miri) ) ] // Miri does not support panics
1043
1035
fn test_rchunks_exactator_0 ( ) {
1044
1036
let v = & [ 1 , 2 , 3 , 4 ] ;
1045
1037
let _it = v. rchunks_exact ( 0 ) ;
@@ -1092,7 +1084,6 @@ fn test_vec_default() {
1092
1084
1093
1085
#[ test]
1094
1086
#[ should_panic]
1095
- #[ cfg( not( miri) ) ] // Miri does not support panics
1096
1087
fn test_overflow_does_not_cause_segfault ( ) {
1097
1088
let mut v = vec ! [ ] ;
1098
1089
v. reserve_exact ( !0 ) ;
@@ -1102,7 +1093,6 @@ fn test_overflow_does_not_cause_segfault() {
1102
1093
1103
1094
#[ test]
1104
1095
#[ should_panic]
1105
- #[ cfg( not( miri) ) ] // Miri does not support panics
1106
1096
fn test_overflow_does_not_cause_segfault_managed ( ) {
1107
1097
let mut v = vec ! [ Rc :: new( 1 ) ] ;
1108
1098
v. reserve_exact ( !0 ) ;
@@ -1278,7 +1268,6 @@ fn test_mut_chunks_rev() {
1278
1268
1279
1269
#[ test]
1280
1270
#[ should_panic]
1281
- #[ cfg( not( miri) ) ] // Miri does not support panics
1282
1271
fn test_mut_chunks_0 ( ) {
1283
1272
let mut v = [ 1 , 2 , 3 , 4 ] ;
1284
1273
let _it = v. chunks_mut ( 0 ) ;
@@ -1311,7 +1300,6 @@ fn test_mut_chunks_exact_rev() {
1311
1300
1312
1301
#[ test]
1313
1302
#[ should_panic]
1314
- #[ cfg( not( miri) ) ] // Miri does not support panics
1315
1303
fn test_mut_chunks_exact_0 ( ) {
1316
1304
let mut v = [ 1 , 2 , 3 , 4 ] ;
1317
1305
let _it = v. chunks_exact_mut ( 0 ) ;
@@ -1344,7 +1332,6 @@ fn test_mut_rchunks_rev() {
1344
1332
1345
1333
#[ test]
1346
1334
#[ should_panic]
1347
- #[ cfg( not( miri) ) ] // Miri does not support panics
1348
1335
fn test_mut_rchunks_0 ( ) {
1349
1336
let mut v = [ 1 , 2 , 3 , 4 ] ;
1350
1337
let _it = v. rchunks_mut ( 0 ) ;
@@ -1377,7 +1364,6 @@ fn test_mut_rchunks_exact_rev() {
1377
1364
1378
1365
#[ test]
1379
1366
#[ should_panic]
1380
- #[ cfg( not( miri) ) ] // Miri does not support panics
1381
1367
fn test_mut_rchunks_exact_0 ( ) {
1382
1368
let mut v = [ 1 , 2 , 3 , 4 ] ;
1383
1369
let _it = v. rchunks_exact_mut ( 0 ) ;
@@ -1411,7 +1397,7 @@ fn test_box_slice_clone() {
1411
1397
#[ test]
1412
1398
#[ allow( unused_must_use) ] // here, we care about the side effects of `.clone()`
1413
1399
#[ cfg_attr( target_os = "emscripten" , ignore) ]
1414
- #[ cfg( not( miri) ) ] // Miri does not support panics
1400
+ #[ cfg( not( miri) ) ] // Miri does not support threads nor entropy
1415
1401
fn test_box_slice_clone_panics ( ) {
1416
1402
use std:: sync:: Arc ;
1417
1403
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
@@ -1476,7 +1462,6 @@ fn test_copy_from_slice() {
1476
1462
1477
1463
#[ test]
1478
1464
#[ should_panic( expected = "destination and source slices have different lengths" ) ]
1479
- #[ cfg( not( miri) ) ] // Miri does not support panics
1480
1465
fn test_copy_from_slice_dst_longer ( ) {
1481
1466
let src = [ 0 , 1 , 2 , 3 ] ;
1482
1467
let mut dst = [ 0 ; 5 ] ;
@@ -1485,7 +1470,6 @@ fn test_copy_from_slice_dst_longer() {
1485
1470
1486
1471
#[ test]
1487
1472
#[ should_panic( expected = "destination and source slices have different lengths" ) ]
1488
- #[ cfg( not( miri) ) ] // Miri does not support panics
1489
1473
fn test_copy_from_slice_dst_shorter ( ) {
1490
1474
let src = [ 0 , 1 , 2 , 3 ] ;
1491
1475
let mut dst = [ 0 ; 3 ] ;
@@ -1605,7 +1589,7 @@ thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
1605
1589
1606
1590
#[ test]
1607
1591
#[ cfg_attr( target_os = "emscripten" , ignore) ] // no threads
1608
- #[ cfg( not( miri) ) ] // Miri does not support panics
1592
+ #[ cfg( not( miri) ) ] // Miri does not support threads nor entropy
1609
1593
fn panic_safe ( ) {
1610
1594
let prev = panic:: take_hook ( ) ;
1611
1595
panic:: set_hook ( Box :: new ( move |info| {
0 commit comments