You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/iterators/into-iter-on-arrays-2018.stderr
+19-9
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,31 @@ warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (du
20
20
--> $DIR/into-iter-on-arrays-2018.rs:18:44
21
21
|
22
22
LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
23
-
| ^^^^^^^^^
23
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
24
24
|
25
25
= warning: this changes meaning in Rust 2021
26
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
27
+
28
+
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.
29
+
--> $DIR/into-iter-on-arrays-2018.rs:22:43
28
30
|
29
-
LL | let _: Iter<'_, i32> = Box::new(array).iter();
30
-
| ~~~~
31
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
31
+
LL | let _: Iter<'_, i32> = Rc::new(array).into_iter();
32
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
33
+
|
34
+
= warning: this changes meaning in Rust 2021
35
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
36
+
37
+
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.
38
+
--> $DIR/into-iter-on-arrays-2018.rs:25:41
32
39
|
33
-
LL | let _: Iter<'_, i32> = IntoIterator::into_iter(Box::new(array));
34
-
| ++++++++++++++++++++++++ ~
40
+
LL | let _: Iter<'_, i32> = Array(array).into_iter();
41
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
42
+
|
43
+
= warning: this changes meaning in Rust 2021
44
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
35
45
36
46
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-2018.rs:29:24
47
+
--> $DIR/into-iter-on-arrays-2018.rs:32:24
38
48
|
39
49
LL | for _ in [1, 2, 3].into_iter() {}
40
50
| ^^^^^^^^^
@@ -51,5 +61,5 @@ LL - for _ in [1, 2, 3].into_iter() {}
Copy file name to clipboardExpand all lines: src/test/ui/iterators/into-iter-on-arrays-lint.stderr
+8-72
Original file line number
Diff line number
Diff line change
@@ -71,137 +71,73 @@ warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (du
71
71
--> $DIR/into-iter-on-arrays-lint.rs:23:21
72
72
|
73
73
LL | Box::new(small).into_iter();
74
-
| ^^^^^^^^^
74
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
75
75
|
76
76
= warning: this changes meaning in Rust 2021
77
77
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
78
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
79
-
|
80
-
LL | Box::new(small).iter();
81
-
| ~~~~
82
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
83
-
|
84
-
LL | IntoIterator::into_iter(Box::new(small));
85
-
| ++++++++++++++++++++++++ ~
86
78
87
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.
88
80
--> $DIR/into-iter-on-arrays-lint.rs:26:22
89
81
|
90
82
LL | Box::new([1, 2]).into_iter();
91
-
| ^^^^^^^^^
83
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
92
84
|
93
85
= warning: this changes meaning in Rust 2021
94
86
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
95
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
96
-
|
97
-
LL | Box::new([1, 2]).iter();
98
-
| ~~~~
99
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
100
-
|
101
-
LL | IntoIterator::into_iter(Box::new([1, 2]));
102
-
| ++++++++++++++++++++++++ ~
103
87
104
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.
105
89
--> $DIR/into-iter-on-arrays-lint.rs:29:19
106
90
|
107
91
LL | Box::new(big).into_iter();
108
-
| ^^^^^^^^^
92
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
109
93
|
110
94
= warning: this changes meaning in Rust 2021
111
95
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
112
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
113
-
|
114
-
LL | Box::new(big).iter();
115
-
| ~~~~
116
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
117
-
|
118
-
LL | IntoIterator::into_iter(Box::new(big));
119
-
| ++++++++++++++++++++++++ ~
120
96
121
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.
122
98
--> $DIR/into-iter-on-arrays-lint.rs:32:25
123
99
|
124
100
LL | Box::new([0u8; 33]).into_iter();
125
-
| ^^^^^^^^^
101
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
126
102
|
127
103
= warning: this changes meaning in Rust 2021
128
104
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
129
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
130
-
|
131
-
LL | Box::new([0u8; 33]).iter();
132
-
| ~~~~
133
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
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.
139
107
--> $DIR/into-iter-on-arrays-lint.rs:36:31
140
108
|
141
109
LL | Box::new(Box::new(small)).into_iter();
142
-
| ^^^^^^^^^
110
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
143
111
|
144
112
= warning: this changes meaning in Rust 2021
145
113
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
146
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
147
-
|
148
-
LL | Box::new(Box::new(small)).iter();
149
-
| ~~~~
150
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
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.
156
116
--> $DIR/into-iter-on-arrays-lint.rs:39:32
157
117
|
158
118
LL | Box::new(Box::new([1, 2])).into_iter();
159
-
| ^^^^^^^^^
119
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
160
120
|
161
121
= warning: this changes meaning in Rust 2021
162
122
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
163
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
164
-
|
165
-
LL | Box::new(Box::new([1, 2])).iter();
166
-
| ~~~~
167
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
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.
173
125
--> $DIR/into-iter-on-arrays-lint.rs:42:29
174
126
|
175
127
LL | Box::new(Box::new(big)).into_iter();
176
-
| ^^^^^^^^^
128
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
177
129
|
178
130
= warning: this changes meaning in Rust 2021
179
131
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
180
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
181
-
|
182
-
LL | Box::new(Box::new(big)).iter();
183
-
| ~~~~
184
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
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.
190
134
--> $DIR/into-iter-on-arrays-lint.rs:45:35
191
135
|
192
136
LL | Box::new(Box::new([0u8; 33])).into_iter();
193
-
| ^^^^^^^^^
137
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
194
138
|
195
139
= warning: this changes meaning in Rust 2021
196
140
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
197
-
help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
198
-
|
199
-
LL | Box::new(Box::new([0u8; 33])).iter();
200
-
| ~~~~
201
-
help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
0 commit comments