@@ -1242,7 +1242,7 @@ impl<T, A: Allocator> Vec<T, A> {
1242
1242
/// ```
1243
1243
#[ inline]
1244
1244
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1245
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
1245
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1246
1246
pub const fn capacity ( & self ) -> usize {
1247
1247
self . buf . capacity ( )
1248
1248
}
@@ -1557,7 +1557,7 @@ impl<T, A: Allocator> Vec<T, A> {
1557
1557
#[ inline]
1558
1558
#[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1559
1559
#[ cfg_attr( not( test) , rustc_diagnostic_item = "vec_as_slice" ) ]
1560
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
1560
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1561
1561
pub const fn as_slice ( & self ) -> & [ T ] {
1562
1562
// SAFETY: `slice::from_raw_parts` requires pointee is a contiguous, aligned buffer of size
1563
1563
// `len` containing properly-initialized `T`s. Data must not be mutated for the returned
@@ -1589,7 +1589,7 @@ impl<T, A: Allocator> Vec<T, A> {
1589
1589
#[ inline]
1590
1590
#[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1591
1591
#[ cfg_attr( not( test) , rustc_diagnostic_item = "vec_as_mut_slice" ) ]
1592
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
1592
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1593
1593
pub const fn as_mut_slice ( & mut self ) -> & mut [ T ] {
1594
1594
// SAFETY: `slice::from_raw_parts_mut` requires pointee is a contiguous, aligned buffer of
1595
1595
// size `len` containing properly-initialized `T`s. Data must not be accessed through any
@@ -1661,7 +1661,7 @@ impl<T, A: Allocator> Vec<T, A> {
1661
1661
/// [`as_ptr`]: Vec::as_ptr
1662
1662
/// [`as_non_null`]: Vec::as_non_null
1663
1663
#[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1664
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
1664
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1665
1665
#[ rustc_never_returns_null_ptr]
1666
1666
#[ rustc_as_ptr]
1667
1667
#[ inline]
@@ -1724,7 +1724,7 @@ impl<T, A: Allocator> Vec<T, A> {
1724
1724
/// [`as_ptr`]: Vec::as_ptr
1725
1725
/// [`as_non_null`]: Vec::as_non_null
1726
1726
#[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1727
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
1727
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
1728
1728
#[ rustc_never_returns_null_ptr]
1729
1729
#[ rustc_as_ptr]
1730
1730
#[ inline]
@@ -2675,7 +2675,7 @@ impl<T, A: Allocator> Vec<T, A> {
2675
2675
/// ```
2676
2676
#[ inline]
2677
2677
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2678
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
2678
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
2679
2679
#[ rustc_confusables( "length" , "size" ) ]
2680
2680
pub const fn len ( & self ) -> usize {
2681
2681
let len = self . len ;
@@ -2701,7 +2701,7 @@ impl<T, A: Allocator> Vec<T, A> {
2701
2701
/// ```
2702
2702
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2703
2703
#[ cfg_attr( not( test) , rustc_diagnostic_item = "vec_is_empty" ) ]
2704
- #[ rustc_const_unstable ( feature = "const_vec_string_slice" , issue = "129041 " ) ]
2704
+ #[ rustc_const_stable ( feature = "const_vec_string_slice" , since = "CURRENT_RUSTC_VERSION " ) ]
2705
2705
pub const fn is_empty ( & self ) -> bool {
2706
2706
self . len ( ) == 0
2707
2707
}
0 commit comments