Skip to content

Commit affcac6

Browse files
authored
Rollup merge of rust-lang#65799 - LukasKalbertodt:fill-array-value-iter-tracking-issue, r=Centril
Fill tracking issue number for `array_value_iter` Thanks for [noticing](rust-lang#62959 (comment))! r? @Centril
2 parents 24bfee2 + dcf3436 commit affcac6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/libcore/array/iter.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use super::LengthAtMost32;
1313
/// A by-value [array] iterator.
1414
///
1515
/// [array]: ../../std/primitive.array.html
16-
#[unstable(feature = "array_value_iter", issue = "0")]
16+
#[unstable(feature = "array_value_iter", issue = "65798")]
1717
pub struct IntoIter<T, const N: usize>
1818
where
1919
[T; N]: LengthAtMost32,
@@ -49,7 +49,7 @@ where
4949
/// *Note*: this method might never get stabilized and/or removed in the
5050
/// future as there will likely be another, preferred way of obtaining this
5151
/// iterator (either via `IntoIterator` for arrays or via another way).
52-
#[unstable(feature = "array_value_iter", issue = "0")]
52+
#[unstable(feature = "array_value_iter", issue = "65798")]
5353
pub fn new(array: [T; N]) -> Self {
5454
// The transmute here is actually safe. The docs of `MaybeUninit`
5555
// promise:
@@ -95,7 +95,7 @@ where
9595
}
9696

9797

98-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
98+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
9999
impl<T, const N: usize> Iterator for IntoIter<T, {N}>
100100
where
101101
[T; N]: LengthAtMost32,
@@ -141,7 +141,7 @@ where
141141
}
142142
}
143143

144-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
144+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
145145
impl<T, const N: usize> DoubleEndedIterator for IntoIter<T, {N}>
146146
where
147147
[T; N]: LengthAtMost32,
@@ -176,7 +176,7 @@ where
176176
}
177177
}
178178

179-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
179+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
180180
impl<T, const N: usize> Drop for IntoIter<T, {N}>
181181
where
182182
[T; N]: LengthAtMost32,
@@ -189,7 +189,7 @@ where
189189
}
190190
}
191191

192-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
192+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
193193
impl<T, const N: usize> ExactSizeIterator for IntoIter<T, {N}>
194194
where
195195
[T; N]: LengthAtMost32,
@@ -204,7 +204,7 @@ where
204204
}
205205
}
206206

207-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
207+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
208208
impl<T, const N: usize> FusedIterator for IntoIter<T, {N}>
209209
where
210210
[T; N]: LengthAtMost32,
@@ -214,13 +214,13 @@ where
214214
// elements (that will still be yielded) is the length of the range `alive`.
215215
// This range is decremented in length in either `next` or `next_back`. It is
216216
// always decremented by 1 in those methods, but only if `Some(_)` is returned.
217-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
217+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
218218
unsafe impl<T, const N: usize> TrustedLen for IntoIter<T, {N}>
219219
where
220220
[T; N]: LengthAtMost32,
221221
{}
222222

223-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
223+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
224224
impl<T: Clone, const N: usize> Clone for IntoIter<T, {N}>
225225
where
226226
[T; N]: LengthAtMost32,
@@ -251,7 +251,7 @@ where
251251
}
252252
}
253253

254-
#[stable(feature = "array_value_iter_impls", since = "1.38.0")]
254+
#[stable(feature = "array_value_iter_impls", since = "1.40.0")]
255255
impl<T: fmt::Debug, const N: usize> fmt::Debug for IntoIter<T, {N}>
256256
where
257257
[T; N]: LengthAtMost32,

src/libcore/array/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::slice::{Iter, IterMut};
1818
mod iter;
1919

2020
#[cfg(not(bootstrap))]
21-
#[unstable(feature = "array_value_iter", issue = "0")]
21+
#[unstable(feature = "array_value_iter", issue = "65798")]
2222
pub use iter::IntoIter;
2323

2424
/// Utility trait implemented only on arrays of fixed size

0 commit comments

Comments
 (0)