@@ -140,7 +140,7 @@ impl<T> [T] {
140
140
/// assert_eq!(None, w.first());
141
141
/// ```
142
142
#[ 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" ) ]
144
144
#[ inline]
145
145
pub const fn first ( & self ) -> Option < & T > {
146
146
if let [ first, ..] = self { Some ( first) } else { None }
@@ -178,7 +178,7 @@ impl<T> [T] {
178
178
/// }
179
179
/// ```
180
180
#[ 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" ) ]
182
182
#[ inline]
183
183
pub const fn split_first ( & self ) -> Option < ( & T , & [ T ] ) > {
184
184
if let [ first, tail @ ..] = self { Some ( ( first, tail) ) } else { None }
@@ -218,7 +218,7 @@ impl<T> [T] {
218
218
/// }
219
219
/// ```
220
220
#[ 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" ) ]
222
222
#[ inline]
223
223
pub const fn split_last ( & self ) -> Option < ( & T , & [ T ] ) > {
224
224
if let [ init @ .., last] = self { Some ( ( last, init) ) } else { None }
@@ -257,7 +257,7 @@ impl<T> [T] {
257
257
/// assert_eq!(None, w.last());
258
258
/// ```
259
259
#[ 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" ) ]
261
261
#[ inline]
262
262
pub const fn last ( & self ) -> Option < & T > {
263
263
if let [ .., last] = self { Some ( last) } else { None }
0 commit comments