@@ -1647,14 +1647,14 @@ mod tests {
16471647 }
16481648
16491649 #[ test]
1650- #[ should_fail ]
1650+ #[ should_panic ]
16511651 fn test_tail_empty ( ) {
16521652 let a = Vec :: < i32 > :: new ( ) ;
16531653 a. tail ( ) ;
16541654 }
16551655
16561656 #[ test]
1657- #[ should_fail ]
1657+ #[ should_panic ]
16581658 fn test_tail_mut_empty ( ) {
16591659 let mut a = Vec :: < i32 > :: new ( ) ;
16601660 a. tail_mut ( ) ;
@@ -1681,14 +1681,14 @@ mod tests {
16811681 }
16821682
16831683 #[ test]
1684- #[ should_fail ]
1684+ #[ should_panic ]
16851685 fn test_init_empty ( ) {
16861686 let a = Vec :: < i32 > :: new ( ) ;
16871687 a. init ( ) ;
16881688 }
16891689
16901690 #[ test]
1691- #[ should_fail ]
1691+ #[ should_panic ]
16921692 fn test_init_mut_empty ( ) {
16931693 let mut a = Vec :: < i32 > :: new ( ) ;
16941694 a. init_mut ( ) ;
@@ -1790,7 +1790,7 @@ mod tests {
17901790 }
17911791
17921792 #[ test]
1793- #[ should_fail ]
1793+ #[ should_panic ]
17941794 fn test_swap_remove_fail ( ) {
17951795 let mut v = vec ! [ 1 ] ;
17961796 let _ = v. swap_remove ( 0 ) ;
@@ -2205,7 +2205,7 @@ mod tests {
22052205 }
22062206
22072207 #[ test]
2208- #[ should_fail ]
2208+ #[ should_panic ]
22092209 fn test_insert_oob ( ) {
22102210 let mut a = vec ! [ 1 , 2 , 3 ] ;
22112211 a. insert ( 4 , 5 ) ;
@@ -2229,7 +2229,7 @@ mod tests {
22292229 }
22302230
22312231 #[ test]
2232- #[ should_fail ]
2232+ #[ should_panic ]
22332233 fn test_remove_fail ( ) {
22342234 let mut a = vec ! [ 1 ] ;
22352235 let _ = a. remove ( 0 ) ;
@@ -2253,7 +2253,7 @@ mod tests {
22532253 }
22542254
22552255 #[ test]
2256- #[ should_fail ]
2256+ #[ should_panic ]
22572257 fn test_permute_fail ( ) {
22582258 let v: [ ( Box < _ > , Rc < _ > ) ; 4 ] =
22592259 [ ( box 0 , Rc :: new ( 0 ) ) , ( box 0 , Rc :: new ( 0 ) ) ,
@@ -2528,7 +2528,7 @@ mod tests {
25282528 }
25292529
25302530 #[ test]
2531- #[ should_fail ]
2531+ #[ should_panic ]
25322532 fn test_windowsator_0 ( ) {
25332533 let v = & [ 1 , 2 , 3 , 4 ] ;
25342534 let _it = v. windows ( 0 ) ;
@@ -2564,7 +2564,7 @@ mod tests {
25642564 }
25652565
25662566 #[ test]
2567- #[ should_fail ]
2567+ #[ should_panic ]
25682568 fn test_chunksator_0 ( ) {
25692569 let v = & [ 1 , 2 , 3 , 4 ] ;
25702570 let _it = v. chunks ( 0 ) ;
@@ -2647,7 +2647,7 @@ mod tests {
26472647 }
26482648
26492649 #[ test]
2650- #[ should_fail ]
2650+ #[ should_panic ]
26512651 fn test_overflow_does_not_cause_segfault ( ) {
26522652 let mut v = vec ! [ ] ;
26532653 v. reserve_exact ( -1 ) ;
@@ -2656,7 +2656,7 @@ mod tests {
26562656 }
26572657
26582658 #[ test]
2659- #[ should_fail ]
2659+ #[ should_panic ]
26602660 fn test_overflow_does_not_cause_segfault_managed ( ) {
26612661 let mut v = vec ! [ Rc :: new( 1 ) ] ;
26622662 v. reserve_exact ( -1 ) ;
@@ -2833,7 +2833,7 @@ mod tests {
28332833 }
28342834
28352835 #[ test]
2836- #[ should_fail ]
2836+ #[ should_panic ]
28372837 fn test_mut_chunks_0 ( ) {
28382838 let mut v = [ 1 , 2 , 3 , 4 ] ;
28392839 let _it = v. chunks_mut ( 0 ) ;
0 commit comments