@@ -944,7 +944,7 @@ impl<T, A: Allocator> Vec<T, A> {
944944 /// ```
945945 #[ inline]
946946 #[ 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" ) ]
948948 pub const fn capacity ( & self ) -> usize {
949949 self . buf . capacity ( )
950950 }
@@ -1252,9 +1252,9 @@ impl<T, A: Allocator> Vec<T, A> {
12521252 /// ```
12531253 #[ inline]
12541254 #[ 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" ) ]
12561256 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 ) }
12581258 }
12591259
12601260 /// Extracts a mutable slice of the entire vector.
@@ -1326,7 +1326,7 @@ impl<T, A: Allocator> Vec<T, A> {
13261326 /// [`as_mut_ptr`]: Vec::as_mut_ptr
13271327 /// [`as_ptr`]: Vec::as_ptr
13281328 #[ 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" ) ]
13301330 #[ rustc_never_returns_null_ptr]
13311331 #[ inline]
13321332 pub const fn as_ptr ( & self ) -> * const T {
@@ -2263,7 +2263,7 @@ impl<T, A: Allocator> Vec<T, A> {
22632263 /// ```
22642264 #[ inline]
22652265 #[ 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" ) ]
22672267 #[ rustc_confusables( "length" , "size" ) ]
22682268 pub const fn len ( & self ) -> usize {
22692269 self . len
@@ -2281,7 +2281,7 @@ impl<T, A: Allocator> Vec<T, A> {
22812281 /// assert!(!v.is_empty());
22822282 /// ```
22832283 #[ 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" ) ]
22852285 pub const fn is_empty ( & self ) -> bool {
22862286 self . len ( ) == 0
22872287 }
0 commit comments