mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Update array::IntoIter::new deprecation version.
This commit is contained in:
parent
eb3fc45c87
commit
27d39357b7
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user