@@ -944,7 +944,7 @@ impl<T, A: Allocator> Vec<T, A> {
944
944
/// ```
945
945
#[ inline]
946
946
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
947
- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
947
+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
948
948
pub const fn capacity ( & self ) -> usize {
949
949
self . buf . capacity ( )
950
950
}
@@ -1252,9 +1252,9 @@ impl<T, A: Allocator> Vec<T, A> {
1252
1252
/// ```
1253
1253
#[ inline]
1254
1254
#[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1255
- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
1255
+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
1256
1256
pub const fn as_slice ( & self ) -> & [ T ] {
1257
- unsafe { slice:: from_raw_parts ( self . as_ptr_const ( ) , self . len ) }
1257
+ unsafe { slice:: from_raw_parts ( self . as_ptr ( ) , self . len ) }
1258
1258
}
1259
1259
1260
1260
/// Extracts a mutable slice of the entire vector.
@@ -1326,7 +1326,7 @@ impl<T, A: Allocator> Vec<T, A> {
1326
1326
/// [`as_mut_ptr`]: Vec::as_mut_ptr
1327
1327
/// [`as_ptr`]: Vec::as_ptr
1328
1328
#[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1329
- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
1329
+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
1330
1330
#[ rustc_never_returns_null_ptr]
1331
1331
#[ inline]
1332
1332
pub const fn as_ptr ( & self ) -> * const T {
@@ -2263,7 +2263,7 @@ impl<T, A: Allocator> Vec<T, A> {
2263
2263
/// ```
2264
2264
#[ inline]
2265
2265
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2266
- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
2266
+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
2267
2267
#[ rustc_confusables( "length" , "size" ) ]
2268
2268
pub const fn len ( & self ) -> usize {
2269
2269
self . len
@@ -2281,7 +2281,7 @@ impl<T, A: Allocator> Vec<T, A> {
2281
2281
/// assert!(!v.is_empty());
2282
2282
/// ```
2283
2283
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2284
- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
2284
+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
2285
2285
pub const fn is_empty ( & self ) -> bool {
2286
2286
self . len ( ) == 0
2287
2287
}
0 commit comments