@@ -66,7 +66,7 @@ use core::ptr::{self, NonNull};
6666use core:: slice:: { self , SliceIndex } ;
6767use core:: { fmt, intrinsics} ;
6868
69- #[ stable( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
69+ #[ stable( feature = "extract_if" , since = "1.87.0 " ) ]
7070pub use self :: extract_if:: ExtractIf ;
7171use crate :: alloc:: { Allocator , Global } ;
7272use crate :: borrow:: { Cow , ToOwned } ;
@@ -1267,7 +1267,7 @@ impl<T, A: Allocator> Vec<T, A> {
12671267 /// ```
12681268 #[ inline]
12691269 #[ 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 " ) ]
12711271 pub const fn capacity ( & self ) -> usize {
12721272 self . buf . capacity ( )
12731273 }
@@ -1582,7 +1582,7 @@ impl<T, A: Allocator> Vec<T, A> {
15821582 #[ inline]
15831583 #[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
15841584 #[ 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 " ) ]
15861586 pub const fn as_slice ( & self ) -> & [ T ] {
15871587 // SAFETY: `slice::from_raw_parts` requires pointee is a contiguous, aligned buffer of size
15881588 // `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> {
16141614 #[ inline]
16151615 #[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
16161616 #[ 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 " ) ]
16181618 pub const fn as_mut_slice ( & mut self ) -> & mut [ T ] {
16191619 // SAFETY: `slice::from_raw_parts_mut` requires pointee is a contiguous, aligned buffer of
16201620 // 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> {
16861686 /// [`as_ptr`]: Vec::as_ptr
16871687 /// [`as_non_null`]: Vec::as_non_null
16881688 #[ 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 " ) ]
16901690 #[ rustc_never_returns_null_ptr]
16911691 #[ rustc_as_ptr]
16921692 #[ inline]
@@ -1749,7 +1749,7 @@ impl<T, A: Allocator> Vec<T, A> {
17491749 /// [`as_ptr`]: Vec::as_ptr
17501750 /// [`as_non_null`]: Vec::as_non_null
17511751 #[ 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 " ) ]
17531753 #[ rustc_never_returns_null_ptr]
17541754 #[ rustc_as_ptr]
17551755 #[ inline]
@@ -2700,7 +2700,7 @@ impl<T, A: Allocator> Vec<T, A> {
27002700 /// ```
27012701 #[ inline]
27022702 #[ 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 " ) ]
27042704 #[ rustc_confusables( "length" , "size" ) ]
27052705 pub const fn len ( & self ) -> usize {
27062706 let len = self . len ;
@@ -2726,7 +2726,7 @@ impl<T, A: Allocator> Vec<T, A> {
27262726 /// ```
27272727 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
27282728 #[ 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 " ) ]
27302730 pub const fn is_empty ( & self ) -> bool {
27312731 self . len ( ) == 0
27322732 }
@@ -3715,7 +3715,7 @@ impl<T, A: Allocator> Vec<T, A> {
37153715 /// assert_eq!(items, vec![0, 0, 0, 0, 0, 0, 0, 2, 2, 2]);
37163716 /// assert_eq!(ones.len(), 3);
37173717 /// ```
3718- #[ stable( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
3718+ #[ stable( feature = "extract_if" , since = "1.87.0 " ) ]
37193719 pub fn extract_if < F , R > ( & mut self , range : R , filter : F ) -> ExtractIf < ' _ , T , F , A >
37203720 where
37213721 F : FnMut ( & mut T ) -> bool ,
0 commit comments