Skip to content

Commit

Permalink
Update array::IntoIter::new deprecation version.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Dec 4, 2021
1 parent eb3fc45 commit 27d3935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/array/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl<T, const N: usize> IntoIterator for [T; N] {
impl<T, const N: usize> IntoIter<T, N> {
/// Creates a new iterator over the given `array`.
#[stable(feature = "array_value_iter", since = "1.51.0")]
#[rustc_deprecated(since = "1.57.0", reason = "use `IntoIterator::into_iter` instead")]
#[rustc_deprecated(since = "1.59.0", reason = "use `IntoIterator::into_iter` instead")]
pub fn new(array: [T; N]) -> Self {
IntoIterator::into_iter(array)
}
Expand Down

0 comments on commit 27d3935

Please sign in to comment.