Skip to content

Commit 189342d

Browse files
committed
mark as insta-stable-ish
1 parent 5182758 commit 189342d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/core/src/array/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,13 @@ impl<T, const N: usize> [T; N] {
394394
/// # Examples
395395
///
396396
/// ```
397-
/// #![feature(array_len)]
398397
/// let a: [usize; 3] = [1, 2, 3];
399398
/// assert_eq!(a.len(), 3);
400399
/// ```
400+
#[cfg(not(bootstrap))]
401401
#[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")]
403404
#[inline]
404405
pub const fn len(&self) -> usize {
405406
N

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(alloc_layout_extra)]
22
#![feature(array_chunks)]
33
#![feature(array_methods)]
4-
#![feature(array_len)]
54
#![feature(array_map)]
65
#![feature(array_windows)]
76
#![feature(bool_to_option)]

0 commit comments

Comments
 (0)