Skip to content

Commit 42fec80

Browse files
committed
Stabilise 'const_array_each_ref';
1 parent 8712e45 commit 42fec80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/array/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ impl<T, const N: usize> [T; N] {
621621
/// assert_eq!(strings.len(), 3);
622622
/// ```
623623
#[stable(feature = "array_methods", since = "1.77.0")]
624-
#[rustc_const_unstable(feature = "const_array_each_ref", issue = "133289")]
624+
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
625625
pub const fn each_ref(&self) -> [&T; N] {
626626
let mut buf = [null::<T>(); N];
627627

@@ -652,7 +652,7 @@ impl<T, const N: usize> [T; N] {
652652
/// assert_eq!(floats, [0.0, 2.7, -1.0]);
653653
/// ```
654654
#[stable(feature = "array_methods", since = "1.77.0")]
655-
#[rustc_const_unstable(feature = "const_array_each_ref", issue = "133289")]
655+
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
656656
pub const fn each_mut(&mut self) -> [&mut T; N] {
657657
let mut buf = [null_mut::<T>(); N];
658658

0 commit comments

Comments
 (0)