@@ -1647,14 +1647,14 @@ mod tests {
1647
1647
}
1648
1648
1649
1649
#[ test]
1650
- #[ should_fail ]
1650
+ #[ should_panic ]
1651
1651
fn test_tail_empty ( ) {
1652
1652
let a = Vec :: < i32 > :: new ( ) ;
1653
1653
a. tail ( ) ;
1654
1654
}
1655
1655
1656
1656
#[ test]
1657
- #[ should_fail ]
1657
+ #[ should_panic ]
1658
1658
fn test_tail_mut_empty ( ) {
1659
1659
let mut a = Vec :: < i32 > :: new ( ) ;
1660
1660
a. tail_mut ( ) ;
@@ -1681,14 +1681,14 @@ mod tests {
1681
1681
}
1682
1682
1683
1683
#[ test]
1684
- #[ should_fail ]
1684
+ #[ should_panic ]
1685
1685
fn test_init_empty ( ) {
1686
1686
let a = Vec :: < i32 > :: new ( ) ;
1687
1687
a. init ( ) ;
1688
1688
}
1689
1689
1690
1690
#[ test]
1691
- #[ should_fail ]
1691
+ #[ should_panic ]
1692
1692
fn test_init_mut_empty ( ) {
1693
1693
let mut a = Vec :: < i32 > :: new ( ) ;
1694
1694
a. init_mut ( ) ;
@@ -1790,7 +1790,7 @@ mod tests {
1790
1790
}
1791
1791
1792
1792
#[ test]
1793
- #[ should_fail ]
1793
+ #[ should_panic ]
1794
1794
fn test_swap_remove_fail ( ) {
1795
1795
let mut v = vec ! [ 1 ] ;
1796
1796
let _ = v. swap_remove ( 0 ) ;
@@ -2205,7 +2205,7 @@ mod tests {
2205
2205
}
2206
2206
2207
2207
#[ test]
2208
- #[ should_fail ]
2208
+ #[ should_panic ]
2209
2209
fn test_insert_oob ( ) {
2210
2210
let mut a = vec ! [ 1 , 2 , 3 ] ;
2211
2211
a. insert ( 4 , 5 ) ;
@@ -2229,7 +2229,7 @@ mod tests {
2229
2229
}
2230
2230
2231
2231
#[ test]
2232
- #[ should_fail ]
2232
+ #[ should_panic ]
2233
2233
fn test_remove_fail ( ) {
2234
2234
let mut a = vec ! [ 1 ] ;
2235
2235
let _ = a. remove ( 0 ) ;
@@ -2253,7 +2253,7 @@ mod tests {
2253
2253
}
2254
2254
2255
2255
#[ test]
2256
- #[ should_fail ]
2256
+ #[ should_panic ]
2257
2257
fn test_permute_fail ( ) {
2258
2258
let v: [ ( Box < _ > , Rc < _ > ) ; 4 ] =
2259
2259
[ ( box 0 , Rc :: new ( 0 ) ) , ( box 0 , Rc :: new ( 0 ) ) ,
@@ -2528,7 +2528,7 @@ mod tests {
2528
2528
}
2529
2529
2530
2530
#[ test]
2531
- #[ should_fail ]
2531
+ #[ should_panic ]
2532
2532
fn test_windowsator_0 ( ) {
2533
2533
let v = & [ 1 , 2 , 3 , 4 ] ;
2534
2534
let _it = v. windows ( 0 ) ;
@@ -2564,7 +2564,7 @@ mod tests {
2564
2564
}
2565
2565
2566
2566
#[ test]
2567
- #[ should_fail ]
2567
+ #[ should_panic ]
2568
2568
fn test_chunksator_0 ( ) {
2569
2569
let v = & [ 1 , 2 , 3 , 4 ] ;
2570
2570
let _it = v. chunks ( 0 ) ;
@@ -2647,7 +2647,7 @@ mod tests {
2647
2647
}
2648
2648
2649
2649
#[ test]
2650
- #[ should_fail ]
2650
+ #[ should_panic ]
2651
2651
fn test_overflow_does_not_cause_segfault ( ) {
2652
2652
let mut v = vec ! [ ] ;
2653
2653
v. reserve_exact ( -1 ) ;
@@ -2656,7 +2656,7 @@ mod tests {
2656
2656
}
2657
2657
2658
2658
#[ test]
2659
- #[ should_fail ]
2659
+ #[ should_panic ]
2660
2660
fn test_overflow_does_not_cause_segfault_managed ( ) {
2661
2661
let mut v = vec ! [ Rc :: new( 1 ) ] ;
2662
2662
v. reserve_exact ( -1 ) ;
@@ -2833,7 +2833,7 @@ mod tests {
2833
2833
}
2834
2834
2835
2835
#[ test]
2836
- #[ should_fail ]
2836
+ #[ should_panic ]
2837
2837
fn test_mut_chunks_0 ( ) {
2838
2838
let mut v = [ 1 , 2 , 3 , 4 ] ;
2839
2839
let _it = v. chunks_mut ( 0 ) ;
0 commit comments