@@ -946,7 +946,7 @@ impl<T, A: Allocator> Vec<T, A> {
946946 /// ```
947947 #[ inline]
948948 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
949- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
949+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
950950 pub const fn capacity ( & self ) -> usize {
951951 self . buf . capacity ( )
952952 }
@@ -1254,9 +1254,9 @@ impl<T, A: Allocator> Vec<T, A> {
12541254 /// ```
12551255 #[ inline]
12561256 #[ stable( feature = "vec_as_slice" , since = "1.7.0" ) ]
1257- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
1257+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
12581258 pub const fn as_slice ( & self ) -> & [ T ] {
1259- unsafe { slice:: from_raw_parts ( self . as_ptr_const ( ) , self . len ) }
1259+ unsafe { slice:: from_raw_parts ( self . as_ptr ( ) , self . len ) }
12601260 }
12611261
12621262 /// Extracts a mutable slice of the entire vector.
@@ -1328,7 +1328,7 @@ impl<T, A: Allocator> Vec<T, A> {
13281328 /// [`as_mut_ptr`]: Vec::as_mut_ptr
13291329 /// [`as_ptr`]: Vec::as_ptr
13301330 #[ stable( feature = "vec_as_ptr" , since = "1.37.0" ) ]
1331- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
1331+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
13321332 #[ rustc_never_returns_null_ptr]
13331333 #[ inline]
13341334 pub const fn as_ptr ( & self ) -> * const T {
@@ -2265,7 +2265,7 @@ impl<T, A: Allocator> Vec<T, A> {
22652265 /// ```
22662266 #[ inline]
22672267 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2268- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
2268+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
22692269 #[ rustc_confusables( "length" , "size" ) ]
22702270 pub const fn len ( & self ) -> usize {
22712271 self . len
@@ -2283,7 +2283,7 @@ impl<T, A: Allocator> Vec<T, A> {
22832283 /// assert!(!v.is_empty());
22842284 /// ```
22852285 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2286- #[ rustc_const_unstable( feature = "const_vec_string_slice" ) ]
2286+ #[ rustc_const_unstable( feature = "const_vec_string_slice" , issue = "none" ) ]
22872287 pub const fn is_empty ( & self ) -> bool {
22882288 self . len ( ) == 0
22892289 }
0 commit comments