@@ -66,7 +66,7 @@ use core::ptr::{self, NonNull};
66
66
use core:: slice:: { self , SliceIndex } ;
67
67
use core:: { fmt, intrinsics} ;
68
68
69
- #[ stable( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
69
+ #[ stable( feature = "extract_if" , since = "1.87.0 " ) ]
70
70
pub use self :: extract_if:: ExtractIf ;
71
71
use crate :: alloc:: { Allocator , Global } ;
72
72
use crate :: borrow:: { Cow , ToOwned } ;
@@ -1267,7 +1267,7 @@ impl<T, A: Allocator> Vec<T, A> {
1267
1267
/// ```
1268
1268
#[ inline]
1269
1269
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1270
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1270
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
1271
1271
pub const fn capacity ( & self ) -> usize {
1272
1272
self . buf . capacity ( )
1273
1273
}
@@ -1582,7 +1582,7 @@ impl<T, A: Allocator> Vec<T, A> {
1582
1582
#[ inline]
1583
1583
#[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1584
1584
#[ rustc_diagnostic_item = "vec_as_slice" ]
1585
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1585
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
1586
1586
pub const fn as_slice ( & self ) -> & [ T ] {
1587
1587
// SAFETY: `slice::from_raw_parts` requires pointee is a contiguous, aligned buffer of size
1588
1588
// `len` containing properly-initialized `T`s. Data must not be mutated for the returned
@@ -1614,7 +1614,7 @@ impl<T, A: Allocator> Vec<T, A> {
1614
1614
#[ inline]
1615
1615
#[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1616
1616
#[ rustc_diagnostic_item = "vec_as_mut_slice" ]
1617
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1617
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
1618
1618
pub const fn as_mut_slice ( & mut self ) -> & mut [ T ] {
1619
1619
// SAFETY: `slice::from_raw_parts_mut` requires pointee is a contiguous, aligned buffer of
1620
1620
// size `len` containing properly-initialized `T`s. Data must not be accessed through any
@@ -1686,7 +1686,7 @@ impl<T, A: Allocator> Vec<T, A> {
1686
1686
/// [`as_ptr`]: Vec::as_ptr
1687
1687
/// [`as_non_null`]: Vec::as_non_null
1688
1688
#[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1689
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1689
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
1690
1690
#[ rustc_never_returns_null_ptr]
1691
1691
#[ rustc_as_ptr]
1692
1692
#[ inline]
@@ -1749,7 +1749,7 @@ impl<T, A: Allocator> Vec<T, A> {
1749
1749
/// [`as_ptr`]: Vec::as_ptr
1750
1750
/// [`as_non_null`]: Vec::as_non_null
1751
1751
#[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1752
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1752
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
1753
1753
#[ rustc_never_returns_null_ptr]
1754
1754
#[ rustc_as_ptr]
1755
1755
#[ inline]
@@ -2700,7 +2700,7 @@ impl<T, A: Allocator> Vec<T, A> {
2700
2700
/// ```
2701
2701
#[ inline]
2702
2702
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2703
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
2703
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
2704
2704
#[ rustc_confusables( "length" , "size" ) ]
2705
2705
pub const fn len ( & self ) -> usize {
2706
2706
let len = self . len ;
@@ -2726,7 +2726,7 @@ impl<T, A: Allocator> Vec<T, A> {
2726
2726
/// ```
2727
2727
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2728
2728
#[ rustc_diagnostic_item = "vec_is_empty" ]
2729
- #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
2729
+ #[ rustc_const_stable( feature = "const_vec_string_slice" , since = "1.87.0 " ) ]
2730
2730
pub const fn is_empty ( & self ) -> bool {
2731
2731
self . len ( ) == 0
2732
2732
}
@@ -3715,7 +3715,7 @@ impl<T, A: Allocator> Vec<T, A> {
3715
3715
/// assert_eq!(items, vec![0, 0, 0, 0, 0, 0, 0, 2, 2, 2]);
3716
3716
/// assert_eq!(ones.len(), 3);
3717
3717
/// ```
3718
- #[ stable( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
3718
+ #[ stable( feature = "extract_if" , since = "1.87.0 " ) ]
3719
3719
pub fn extract_if < F , R > ( & mut self , range : R , filter : F ) -> ExtractIf < ' _ , T , F , A >
3720
3720
where
3721
3721
F : FnMut ( & mut T ) -> bool ,
0 commit comments