]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/into-iter-on-arrays-lint.stderr
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
[rust.git] / tests / ui / iterators / into-iter-on-arrays-lint.stderr
1 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
2   --> $DIR/into-iter-on-arrays-lint.rs:11:11
3    |
4 LL |     small.into_iter();
5    |           ^^^^^^^^^
6    |
7    = warning: this changes meaning in Rust 2021
8    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
9    = note: `#[warn(array_into_iter)]` on by default
10 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
11    |
12 LL |     small.iter();
13    |           ~~~~
14 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
15    |
16 LL |     IntoIterator::into_iter(small);
17    |     ++++++++++++++++++++++++     ~
18
19 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
20   --> $DIR/into-iter-on-arrays-lint.rs:14:12
21    |
22 LL |     [1, 2].into_iter();
23    |            ^^^^^^^^^
24    |
25    = warning: this changes meaning in Rust 2021
26    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
27 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
28    |
29 LL |     [1, 2].iter();
30    |            ~~~~
31 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
32    |
33 LL |     IntoIterator::into_iter([1, 2]);
34    |     ++++++++++++++++++++++++      ~
35
36 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
37   --> $DIR/into-iter-on-arrays-lint.rs:17:9
38    |
39 LL |     big.into_iter();
40    |         ^^^^^^^^^
41    |
42    = warning: this changes meaning in Rust 2021
43    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
44 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
45    |
46 LL |     big.iter();
47    |         ~~~~
48 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
49    |
50 LL |     IntoIterator::into_iter(big);
51    |     ++++++++++++++++++++++++   ~
52
53 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
54   --> $DIR/into-iter-on-arrays-lint.rs:20:15
55    |
56 LL |     [0u8; 33].into_iter();
57    |               ^^^^^^^^^
58    |
59    = warning: this changes meaning in Rust 2021
60    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
61 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
62    |
63 LL |     [0u8; 33].iter();
64    |               ~~~~
65 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
66    |
67 LL |     IntoIterator::into_iter([0u8; 33]);
68    |     ++++++++++++++++++++++++         ~
69
70 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
71   --> $DIR/into-iter-on-arrays-lint.rs:24:21
72    |
73 LL |     Box::new(small).into_iter();
74    |                     ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
75    |
76    = warning: this changes meaning in Rust 2021
77    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
78
79 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
80   --> $DIR/into-iter-on-arrays-lint.rs:27:22
81    |
82 LL |     Box::new([1, 2]).into_iter();
83    |                      ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
84    |
85    = warning: this changes meaning in Rust 2021
86    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
87
88 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
89   --> $DIR/into-iter-on-arrays-lint.rs:30:19
90    |
91 LL |     Box::new(big).into_iter();
92    |                   ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
93    |
94    = warning: this changes meaning in Rust 2021
95    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
96
97 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
98   --> $DIR/into-iter-on-arrays-lint.rs:33:25
99    |
100 LL |     Box::new([0u8; 33]).into_iter();
101    |                         ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
102    |
103    = warning: this changes meaning in Rust 2021
104    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
105
106 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
107   --> $DIR/into-iter-on-arrays-lint.rs:37:31
108    |
109 LL |     Box::new(Box::new(small)).into_iter();
110    |                               ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
111    |
112    = warning: this changes meaning in Rust 2021
113    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
114
115 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
116   --> $DIR/into-iter-on-arrays-lint.rs:40:32
117    |
118 LL |     Box::new(Box::new([1, 2])).into_iter();
119    |                                ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
120    |
121    = warning: this changes meaning in Rust 2021
122    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
123
124 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
125   --> $DIR/into-iter-on-arrays-lint.rs:43:29
126    |
127 LL |     Box::new(Box::new(big)).into_iter();
128    |                             ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
129    |
130    = warning: this changes meaning in Rust 2021
131    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
132
133 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
134   --> $DIR/into-iter-on-arrays-lint.rs:46:35
135    |
136 LL |     Box::new(Box::new([0u8; 33])).into_iter();
137    |                                   ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
138    |
139    = warning: this changes meaning in Rust 2021
140    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
141
142 warning: 12 warnings emitted
143