2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:10:11
2019-11-01 11:04:31 +00:00
|
LL | small.into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-11-01 11:04:31 +00:00
|
= note: `#[warn(array_into_iter)]` on by default
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-11-01 11:04:31 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | small.iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(small);
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-11-01 11:04:31 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:13:12
2019-11-01 11:04:31 +00:00
|
LL | [1, 2].into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-11-01 11:04:31 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-11-01 11:04:31 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | [1, 2].iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter([1, 2]);
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-11-01 11:04:31 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:16:9
2019-11-01 11:04:31 +00:00
|
LL | big.into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-11-01 11:04:31 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-11-01 11:04:31 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | big.iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(big);
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-11-01 11:04:31 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:19:15
2019-11-01 11:04:31 +00:00
|
LL | [0u8; 33].into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-11-01 11:04:31 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-11-01 11:04:31 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | [0u8; 33].iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter([0u8; 33]);
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-11-01 11:04:31 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:23:21
2019-12-22 13:26:28 +00:00
|
LL | Box::new(small).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(small).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(small));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:26:22
2019-12-22 13:26:28 +00:00
|
LL | Box::new([1, 2]).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new([1, 2]).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new([1, 2]));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:29:19
2019-12-22 13:26:28 +00:00
|
LL | Box::new(big).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(big).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(big));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:32:25
2019-12-22 13:26:28 +00:00
|
LL | Box::new([0u8; 33]).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new([0u8; 33]).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new([0u8; 33]));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:36:31
2019-12-22 13:26:28 +00:00
|
LL | Box::new(Box::new(small)).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(Box::new(small)).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(Box::new(small)));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:39:32
2019-12-22 13:26:28 +00:00
|
LL | Box::new(Box::new([1, 2])).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(Box::new([1, 2])).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(Box::new([1, 2])));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:42:29
2019-12-22 13:26:28 +00:00
|
LL | Box::new(Box::new(big)).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(Box::new(big)).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(Box::new(big)));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2021-05-25 15:56:19 +00:00
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.
2021-06-25 17:26:31 +00:00
--> $DIR/into-iter-on-arrays-lint.rs:45:35
2019-12-22 13:26:28 +00:00
|
LL | Box::new(Box::new([0u8; 33])).into_iter();
2021-05-25 15:56:19 +00:00
| ^^^^^^^^^
2019-12-22 13:26:28 +00:00
|
2021-06-15 15:16:21 +00:00
= warning: this changes meaning in Rust 2021
2019-12-22 13:26:28 +00:00
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2021-05-25 15:56:19 +00:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | Box::new(Box::new([0u8; 33])).iter();
| ^^^^
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(Box::new(Box::new([0u8; 33])));
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
2019-12-22 13:26:28 +00:00
2020-03-11 15:30:09 +00:00
warning: 12 warnings emitted