We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5182758 commit 189342dCopy full SHA for 189342d
library/core/src/array/mod.rs
@@ -394,12 +394,13 @@ impl<T, const N: usize> [T; N] {
394
/// # Examples
395
///
396
/// ```
397
- /// #![feature(array_len)]
398
/// let a: [usize; 3] = [1, 2, 3];
399
/// assert_eq!(a.len(), 3);
400
+ #[cfg(not(bootstrap))]
401
#[doc(alias = "length")]
402
- #[unstable(feature = "array_len", issue = "none")]
+ #[stable(feature = "rust1", since = "1.0.0")]
403
+ #[rustc_const_stable(feature = "array_len", since = "1.53.0")]
404
#[inline]
405
pub const fn len(&self) -> usize {
406
N
library/core/tests/lib.rs
@@ -1,7 +1,6 @@
1
#![feature(alloc_layout_extra)]
2
#![feature(array_chunks)]
3
#![feature(array_methods)]
4
-#![feature(array_len)]
5
#![feature(array_map)]
6
#![feature(array_windows)]
7
#![feature(bool_to_option)]
0 commit comments