| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:12:11 |
| | |
| LL | small.into_iter(); |
| | ^^^^^^^^^ |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| = note: `#[warn(array_into_iter)]` (part of `#[warn(rust_2021_compatibility)]`) on by default |
| help: use `.iter()` instead of `.into_iter()` to avoid ambiguity |
| | |
| LL - small.into_iter(); |
| LL + small.iter(); |
| | |
| help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value |
| | |
| LL - small.into_iter(); |
| LL + IntoIterator::into_iter(small); |
| | |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:15:12 |
| | |
| LL | [1, 2].into_iter(); |
| | ^^^^^^^^^ |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| help: use `.iter()` instead of `.into_iter()` to avoid ambiguity |
| | |
| LL - [1, 2].into_iter(); |
| LL + [1, 2].iter(); |
| | |
| help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value |
| | |
| LL - [1, 2].into_iter(); |
| LL + IntoIterator::into_iter([1, 2]); |
| | |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:18:9 |
| | |
| LL | big.into_iter(); |
| | ^^^^^^^^^ |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| help: use `.iter()` instead of `.into_iter()` to avoid ambiguity |
| | |
| LL - big.into_iter(); |
| LL + big.iter(); |
| | |
| help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value |
| | |
| LL - big.into_iter(); |
| LL + IntoIterator::into_iter(big); |
| | |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:21:15 |
| | |
| LL | [0u8; 33].into_iter(); |
| | ^^^^^^^^^ |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| help: use `.iter()` instead of `.into_iter()` to avoid ambiguity |
| | |
| LL - [0u8; 33].into_iter(); |
| LL + [0u8; 33].iter(); |
| | |
| help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value |
| | |
| LL - [0u8; 33].into_iter(); |
| LL + IntoIterator::into_iter([0u8; 33]); |
| | |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:25:21 |
| | |
| LL | Box::new(small).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:28:22 |
| | |
| LL | Box::new([1, 2]).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:31:19 |
| | |
| LL | Box::new(big).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:34:25 |
| | |
| LL | Box::new([0u8; 33]).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:38:31 |
| | |
| LL | Box::new(Box::new(small)).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:41:32 |
| | |
| LL | Box::new(Box::new([1, 2])).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:44:29 |
| | |
| LL | Box::new(Box::new(big)).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 |
| --> $DIR/into-iter-on-arrays-lint.rs:47:35 |
| | |
| LL | Box::new(Box::new([0u8; 33])).into_iter(); |
| | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
| | |
| = warning: this changes meaning in Rust 2021 |
| = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html> |
| |
| warning: 12 warnings emitted |
| |