@@ -13,7 +13,7 @@ use super::LengthAtMost32;
13
13
/// A by-value [array] iterator.
14
14
///
15
15
/// [array]: ../../std/primitive.array.html
16
- #[ unstable( feature = "array_value_iter" , issue = "0 " ) ]
16
+ #[ unstable( feature = "array_value_iter" , issue = "65798 " ) ]
17
17
pub struct IntoIter < T , const N : usize >
18
18
where
19
19
[ T ; N ] : LengthAtMost32 ,
49
49
/// *Note*: this method might never get stabilized and/or removed in the
50
50
/// future as there will likely be another, preferred way of obtaining this
51
51
/// 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 " ) ]
53
53
pub fn new ( array : [ T ; N ] ) -> Self {
54
54
// The transmute here is actually safe. The docs of `MaybeUninit`
55
55
// promise:
95
95
}
96
96
97
97
98
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
98
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
99
99
impl < T , const N : usize > Iterator for IntoIter < T , { N } >
100
100
where
101
101
[ T ; N ] : LengthAtMost32 ,
@@ -141,7 +141,7 @@ where
141
141
}
142
142
}
143
143
144
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
144
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
145
145
impl < T , const N : usize > DoubleEndedIterator for IntoIter < T , { N } >
146
146
where
147
147
[ T ; N ] : LengthAtMost32 ,
@@ -176,7 +176,7 @@ where
176
176
}
177
177
}
178
178
179
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
179
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
180
180
impl < T , const N : usize > Drop for IntoIter < T , { N } >
181
181
where
182
182
[ T ; N ] : LengthAtMost32 ,
@@ -189,7 +189,7 @@ where
189
189
}
190
190
}
191
191
192
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
192
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
193
193
impl < T , const N : usize > ExactSizeIterator for IntoIter < T , { N } >
194
194
where
195
195
[ T ; N ] : LengthAtMost32 ,
@@ -204,7 +204,7 @@ where
204
204
}
205
205
}
206
206
207
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
207
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
208
208
impl < T , const N : usize > FusedIterator for IntoIter < T , { N } >
209
209
where
210
210
[ T ; N ] : LengthAtMost32 ,
@@ -214,13 +214,13 @@ where
214
214
// elements (that will still be yielded) is the length of the range `alive`.
215
215
// This range is decremented in length in either `next` or `next_back`. It is
216
216
// 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" ) ]
218
218
unsafe impl < T , const N : usize > TrustedLen for IntoIter < T , { N } >
219
219
where
220
220
[ T ; N ] : LengthAtMost32 ,
221
221
{ }
222
222
223
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
223
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
224
224
impl < T : Clone , const N : usize > Clone for IntoIter < T , { N } >
225
225
where
226
226
[ T ; N ] : LengthAtMost32 ,
@@ -251,7 +251,7 @@ where
251
251
}
252
252
}
253
253
254
- #[ stable( feature = "array_value_iter_impls" , since = "1.38 .0" ) ]
254
+ #[ stable( feature = "array_value_iter_impls" , since = "1.40 .0" ) ]
255
255
impl < T : fmt:: Debug , const N : usize > fmt:: Debug for IntoIter < T , { N } >
256
256
where
257
257
[ T ; N ] : LengthAtMost32 ,
0 commit comments