File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -394,12 +394,13 @@ impl<T, const N: usize> [T; N] {
394
394
/// # Examples
395
395
///
396
396
/// ```
397
- /// #![feature(array_len)]
398
397
/// let a: [usize; 3] = [1, 2, 3];
399
398
/// assert_eq!(a.len(), 3);
400
399
/// ```
400
+ #[ cfg( not( bootstrap) ) ]
401
401
#[ doc( alias = "length" ) ]
402
- #[ unstable( feature = "array_len" , issue = "none" ) ]
402
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
403
+ #[ rustc_const_stable( feature = "array_len" , since = "1.53.0" ) ]
403
404
#[ inline]
404
405
pub const fn len ( & self ) -> usize {
405
406
N
Original file line number Diff line number Diff line change 1
1
#![ feature( alloc_layout_extra) ]
2
2
#![ feature( array_chunks) ]
3
3
#![ feature( array_methods) ]
4
- #![ feature( array_len) ]
5
4
#![ feature( array_map) ]
6
5
#![ feature( array_windows) ]
7
6
#![ feature( bool_to_option) ]
You can’t perform that action at this time.
0 commit comments