@@ -258,7 +258,6 @@ fn test_swap_remove() {
258258
259259#[ test]
260260#[ should_panic]
261- #[ cfg( not( miri) ) ] // Miri does not support panics
262261fn test_swap_remove_fail ( ) {
263262 let mut v = vec ! [ 1 ] ;
264263 let _ = v. swap_remove ( 0 ) ;
@@ -632,7 +631,6 @@ fn test_insert() {
632631
633632#[ test]
634633#[ should_panic]
635- #[ cfg( not( miri) ) ] // Miri does not support panics
636634fn test_insert_oob ( ) {
637635 let mut a = vec ! [ 1 , 2 , 3 ] ;
638636 a. insert ( 4 , 5 ) ;
@@ -657,7 +655,6 @@ fn test_remove() {
657655
658656#[ test]
659657#[ should_panic]
660- #[ cfg( not( miri) ) ] // Miri does not support panics
661658fn test_remove_fail ( ) {
662659 let mut a = vec ! [ 1 ] ;
663660 let _ = a. remove ( 0 ) ;
@@ -939,7 +936,6 @@ fn test_windowsator() {
939936
940937#[ test]
941938#[ should_panic]
942- #[ cfg( not( miri) ) ] // Miri does not support panics
943939fn test_windowsator_0 ( ) {
944940 let v = & [ 1 , 2 , 3 , 4 ] ;
945941 let _it = v. windows ( 0 ) ;
@@ -964,7 +960,6 @@ fn test_chunksator() {
964960
965961#[ test]
966962#[ should_panic]
967- #[ cfg( not( miri) ) ] // Miri does not support panics
968963fn test_chunksator_0 ( ) {
969964 let v = & [ 1 , 2 , 3 , 4 ] ;
970965 let _it = v. chunks ( 0 ) ;
@@ -989,7 +984,6 @@ fn test_chunks_exactator() {
989984
990985#[ test]
991986#[ should_panic]
992- #[ cfg( not( miri) ) ] // Miri does not support panics
993987fn test_chunks_exactator_0 ( ) {
994988 let v = & [ 1 , 2 , 3 , 4 ] ;
995989 let _it = v. chunks_exact ( 0 ) ;
@@ -1014,7 +1008,6 @@ fn test_rchunksator() {
10141008
10151009#[ test]
10161010#[ should_panic]
1017- #[ cfg( not( miri) ) ] // Miri does not support panics
10181011fn test_rchunksator_0 ( ) {
10191012 let v = & [ 1 , 2 , 3 , 4 ] ;
10201013 let _it = v. rchunks ( 0 ) ;
@@ -1039,7 +1032,6 @@ fn test_rchunks_exactator() {
10391032
10401033#[ test]
10411034#[ should_panic]
1042- #[ cfg( not( miri) ) ] // Miri does not support panics
10431035fn test_rchunks_exactator_0 ( ) {
10441036 let v = & [ 1 , 2 , 3 , 4 ] ;
10451037 let _it = v. rchunks_exact ( 0 ) ;
@@ -1092,7 +1084,6 @@ fn test_vec_default() {
10921084
10931085#[ test]
10941086#[ should_panic]
1095- #[ cfg( not( miri) ) ] // Miri does not support panics
10961087fn test_overflow_does_not_cause_segfault ( ) {
10971088 let mut v = vec ! [ ] ;
10981089 v. reserve_exact ( !0 ) ;
@@ -1102,7 +1093,6 @@ fn test_overflow_does_not_cause_segfault() {
11021093
11031094#[ test]
11041095#[ should_panic]
1105- #[ cfg( not( miri) ) ] // Miri does not support panics
11061096fn test_overflow_does_not_cause_segfault_managed ( ) {
11071097 let mut v = vec ! [ Rc :: new( 1 ) ] ;
11081098 v. reserve_exact ( !0 ) ;
@@ -1278,7 +1268,6 @@ fn test_mut_chunks_rev() {
12781268
12791269#[ test]
12801270#[ should_panic]
1281- #[ cfg( not( miri) ) ] // Miri does not support panics
12821271fn test_mut_chunks_0 ( ) {
12831272 let mut v = [ 1 , 2 , 3 , 4 ] ;
12841273 let _it = v. chunks_mut ( 0 ) ;
@@ -1311,7 +1300,6 @@ fn test_mut_chunks_exact_rev() {
13111300
13121301#[ test]
13131302#[ should_panic]
1314- #[ cfg( not( miri) ) ] // Miri does not support panics
13151303fn test_mut_chunks_exact_0 ( ) {
13161304 let mut v = [ 1 , 2 , 3 , 4 ] ;
13171305 let _it = v. chunks_exact_mut ( 0 ) ;
@@ -1344,7 +1332,6 @@ fn test_mut_rchunks_rev() {
13441332
13451333#[ test]
13461334#[ should_panic]
1347- #[ cfg( not( miri) ) ] // Miri does not support panics
13481335fn test_mut_rchunks_0 ( ) {
13491336 let mut v = [ 1 , 2 , 3 , 4 ] ;
13501337 let _it = v. rchunks_mut ( 0 ) ;
@@ -1377,7 +1364,6 @@ fn test_mut_rchunks_exact_rev() {
13771364
13781365#[ test]
13791366#[ should_panic]
1380- #[ cfg( not( miri) ) ] // Miri does not support panics
13811367fn test_mut_rchunks_exact_0 ( ) {
13821368 let mut v = [ 1 , 2 , 3 , 4 ] ;
13831369 let _it = v. rchunks_exact_mut ( 0 ) ;
@@ -1411,7 +1397,7 @@ fn test_box_slice_clone() {
14111397#[ test]
14121398#[ allow( unused_must_use) ] // here, we care about the side effects of `.clone()`
14131399#[ 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
14151401fn test_box_slice_clone_panics ( ) {
14161402 use std:: sync:: Arc ;
14171403 use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
@@ -1476,7 +1462,6 @@ fn test_copy_from_slice() {
14761462
14771463#[ test]
14781464#[ should_panic( expected = "destination and source slices have different lengths" ) ]
1479- #[ cfg( not( miri) ) ] // Miri does not support panics
14801465fn test_copy_from_slice_dst_longer ( ) {
14811466 let src = [ 0 , 1 , 2 , 3 ] ;
14821467 let mut dst = [ 0 ; 5 ] ;
@@ -1485,7 +1470,6 @@ fn test_copy_from_slice_dst_longer() {
14851470
14861471#[ test]
14871472#[ should_panic( expected = "destination and source slices have different lengths" ) ]
1488- #[ cfg( not( miri) ) ] // Miri does not support panics
14891473fn test_copy_from_slice_dst_shorter ( ) {
14901474 let src = [ 0 , 1 , 2 , 3 ] ;
14911475 let mut dst = [ 0 ; 3 ] ;
@@ -1605,7 +1589,7 @@ thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
16051589
16061590#[ test]
16071591#[ 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
16091593fn panic_safe ( ) {
16101594 let prev = panic:: take_hook ( ) ;
16111595 panic:: set_hook ( Box :: new ( move |info| {
0 commit comments