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: tests/ui/iterators/into-iter-on-arrays-2018.stderr
+5-14Lines changed: 5 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
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
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
22
-
--> $DIR/into-iter-on-arrays-2018.rs:18:44
23
-
|
24
-
LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
25
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
26
-
|
27
-
= warning: this changes meaning in Rust 2021
28
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
29
-
30
-
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
31
-
--> $DIR/into-iter-on-arrays-2018.rs:22:43
22
+
--> $DIR/into-iter-on-arrays-2018.rs:21:43
32
23
|
33
24
LL | let _: Iter<'_, i32> = Rc::new(array).into_iter();
34
25
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
38
29
39
30
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
40
-
--> $DIR/into-iter-on-arrays-2018.rs:25:41
31
+
--> $DIR/into-iter-on-arrays-2018.rs:24:41
41
32
|
42
33
LL | let _: Iter<'_, i32> = Array(array).into_iter();
43
34
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
47
38
48
39
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
49
-
--> $DIR/into-iter-on-arrays-2018.rs:32:24
40
+
--> $DIR/into-iter-on-arrays-2018.rs:31:24
50
41
|
51
42
LL | for _ in [1, 2, 3].into_iter() {}
52
43
| ^^^^^^^^^
@@ -64,5 +55,5 @@ LL - for _ in [1, 2, 3].into_iter() {}
Copy file name to clipboardExpand all lines: tests/ui/iterators/into-iter-on-arrays-lint.stderr
+1-73Lines changed: 1 addition & 73 deletions
Original file line number
Diff line number
Diff line change
@@ -75,77 +75,5 @@ LL - [0u8; 33].into_iter();
75
75
LL + IntoIterator::into_iter([0u8; 33]);
76
76
|
77
77
78
-
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
79
-
--> $DIR/into-iter-on-arrays-lint.rs:25:21
80
-
|
81
-
LL | Box::new(small).into_iter();
82
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
83
-
|
84
-
= warning: this changes meaning in Rust 2021
85
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
86
-
87
-
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
-
--> $DIR/into-iter-on-arrays-lint.rs:28:22
89
-
|
90
-
LL | Box::new([1, 2]).into_iter();
91
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
92
-
|
93
-
= warning: this changes meaning in Rust 2021
94
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
95
-
96
-
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
97
-
--> $DIR/into-iter-on-arrays-lint.rs:31:19
98
-
|
99
-
LL | Box::new(big).into_iter();
100
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
101
-
|
102
-
= warning: this changes meaning in Rust 2021
103
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
104
-
105
-
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
106
-
--> $DIR/into-iter-on-arrays-lint.rs:34:25
107
-
|
108
-
LL | Box::new([0u8; 33]).into_iter();
109
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
110
-
|
111
-
= warning: this changes meaning in Rust 2021
112
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
113
-
114
-
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
115
-
--> $DIR/into-iter-on-arrays-lint.rs:38:31
116
-
|
117
-
LL | Box::new(Box::new(small)).into_iter();
118
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
119
-
|
120
-
= warning: this changes meaning in Rust 2021
121
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
122
-
123
-
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
124
-
--> $DIR/into-iter-on-arrays-lint.rs:41:32
125
-
|
126
-
LL | Box::new(Box::new([1, 2])).into_iter();
127
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
128
-
|
129
-
= warning: this changes meaning in Rust 2021
130
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
131
-
132
-
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
133
-
--> $DIR/into-iter-on-arrays-lint.rs:44:29
134
-
|
135
-
LL | Box::new(Box::new(big)).into_iter();
136
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
137
-
|
138
-
= warning: this changes meaning in Rust 2021
139
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
140
-
141
-
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
142
-
--> $DIR/into-iter-on-arrays-lint.rs:47:35
143
-
|
144
-
LL | Box::new(Box::new([0u8; 33])).into_iter();
145
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
146
-
|
147
-
= warning: this changes meaning in Rust 2021
148
-
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
0 commit comments