@@ -140,7 +140,7 @@ impl<T> [T] {
140140 /// assert_eq!(None, w.first());
141141 /// ```
142142 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
143- #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.55 .0" ) ]
143+ #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.56 .0" ) ]
144144 #[ inline]
145145 pub const fn first ( & self ) -> Option < & T > {
146146 if let [ first, ..] = self { Some ( first) } else { None }
@@ -178,7 +178,7 @@ impl<T> [T] {
178178 /// }
179179 /// ```
180180 #[ stable( feature = "slice_splits" , since = "1.5.0" ) ]
181- #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.55 .0" ) ]
181+ #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.56 .0" ) ]
182182 #[ inline]
183183 pub const fn split_first ( & self ) -> Option < ( & T , & [ T ] ) > {
184184 if let [ first, tail @ ..] = self { Some ( ( first, tail) ) } else { None }
@@ -218,7 +218,7 @@ impl<T> [T] {
218218 /// }
219219 /// ```
220220 #[ stable( feature = "slice_splits" , since = "1.5.0" ) ]
221- #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.55 .0" ) ]
221+ #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.56 .0" ) ]
222222 #[ inline]
223223 pub const fn split_last ( & self ) -> Option < ( & T , & [ T ] ) > {
224224 if let [ init @ .., last] = self { Some ( ( last, init) ) } else { None }
@@ -257,7 +257,7 @@ impl<T> [T] {
257257 /// assert_eq!(None, w.last());
258258 /// ```
259259 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
260- #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.55 .0" ) ]
260+ #[ rustc_const_stable( feature = "const_slice_first_last_not_mut" , since = "1.56 .0" ) ]
261261 #[ inline]
262262 pub const fn last ( & self ) -> Option < & T > {
263263 if let [ .., last] = self { Some ( last) } else { None }
0 commit comments