2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:11:11
2019-11-01 06:04:31 -05:00
|
LL | small.into_iter();
2021-05-25 10:56:19 -05:00
| ^^^^^^^^^
2019-11-01 06:04:31 -05:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2022-09-18 10:55:36 -05:00
= note: `#[warn(array_into_iter)]` on by default
2021-05-25 10:56:19 -05:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | small.iter();
2021-06-21 21:07:19 -05:00
| ~~~~
2021-05-25 10:56:19 -05:00
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(small);
2021-06-21 21:07:19 -05:00
| ++++++++++++++++++++++++ ~
2019-11-01 06:04:31 -05:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:14:12
2019-11-01 06:04:31 -05:00
|
LL | [1, 2].into_iter();
2021-05-25 10:56:19 -05:00
| ^^^^^^^^^
2019-11-01 06:04:31 -05:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2021-05-25 10:56:19 -05:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | [1, 2].iter();
2021-06-21 21:07:19 -05:00
| ~~~~
2021-05-25 10:56:19 -05:00
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter([1, 2]);
2021-06-21 21:07:19 -05:00
| ++++++++++++++++++++++++ ~
2019-11-01 06:04:31 -05:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:17:9
2019-11-01 06:04:31 -05:00
|
LL | big.into_iter();
2021-05-25 10:56:19 -05:00
| ^^^^^^^^^
2019-11-01 06:04:31 -05:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2021-05-25 10:56:19 -05:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | big.iter();
2021-06-21 21:07:19 -05:00
| ~~~~
2021-05-25 10:56:19 -05:00
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter(big);
2021-06-21 21:07:19 -05:00
| ++++++++++++++++++++++++ ~
2019-11-01 06:04:31 -05:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:20:15
2019-11-01 06:04:31 -05:00
|
LL | [0u8; 33].into_iter();
2021-05-25 10:56:19 -05:00
| ^^^^^^^^^
2019-11-01 06:04:31 -05:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2021-05-25 10:56:19 -05:00
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
|
LL | [0u8; 33].iter();
2021-06-21 21:07:19 -05:00
| ~~~~
2021-05-25 10:56:19 -05:00
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
|
LL | IntoIterator::into_iter([0u8; 33]);
2021-06-21 21:07:19 -05:00
| ++++++++++++++++++++++++ ~
2019-11-01 06:04:31 -05:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:24:21
2019-12-22 07:26:28 -06:00
|
LL | Box::new(small).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:27:22
2019-12-22 07:26:28 -06:00
|
LL | Box::new([1, 2]).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:30:19
2019-12-22 07:26:28 -06:00
|
LL | Box::new(big).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:33:25
2019-12-22 07:26:28 -06:00
|
LL | Box::new([0u8; 33]).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:37:31
2019-12-22 07:26:28 -06:00
|
LL | Box::new(Box::new(small)).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:40:32
2019-12-22 07:26:28 -06:00
|
LL | Box::new(Box::new([1, 2])).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:43:29
2019-12-22 07:26:28 -06:00
|
LL | Box::new(Box::new(big)).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2021-10-03 01:53:02 -05: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
2022-01-13 07:57:57 -06:00
--> $DIR/into-iter-on-arrays-lint.rs:46:35
2019-12-22 07:26:28 -06:00
|
LL | Box::new(Box::new([0u8; 33])).into_iter();
2021-08-30 16:42:48 -05:00
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
2019-12-22 07:26:28 -06:00
|
2021-06-15 10:16:21 -05:00
= warning: this changes meaning in Rust 2021
2021-08-09 10:45:01 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
2019-12-22 07:26:28 -06:00
2020-03-11 10:30:09 -05:00
warning: 12 warnings emitted