Skip to content

Commit 7b7c223

Browse files
committed
Always pass -Z future-incompat-report to UI tests
1 parent 2f6e59d commit 7b7c223

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

src/test/ui/iterators/into-iter-on-arrays-lint.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// run-pass
22
// run-rustfix
3-
// compile-flags: -Z emit-future-incompat-report
43

54
fn main() {
65
let small = [1, 2];

src/test/ui/iterators/into-iter-on-arrays-lint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// run-pass
22
// run-rustfix
3-
// compile-flags: -Z emit-future-incompat-report
43

54
fn main() {
65
let small = [1, 2];

src/test/ui/iterators/into-iter-on-arrays-lint.stderr

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
2-
--> $DIR/into-iter-on-arrays-lint.rs:10:11
2+
--> $DIR/into-iter-on-arrays-lint.rs:9:11
33
|
44
LL | small.into_iter();
55
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -9,7 +9,7 @@ LL | small.into_iter();
99
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
1010

1111
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
12-
--> $DIR/into-iter-on-arrays-lint.rs:13:12
12+
--> $DIR/into-iter-on-arrays-lint.rs:12:12
1313
|
1414
LL | [1, 2].into_iter();
1515
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -18,7 +18,7 @@ LL | [1, 2].into_iter();
1818
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
1919

2020
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
21-
--> $DIR/into-iter-on-arrays-lint.rs:16:9
21+
--> $DIR/into-iter-on-arrays-lint.rs:15:9
2222
|
2323
LL | big.into_iter();
2424
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -27,7 +27,7 @@ LL | big.into_iter();
2727
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
2828

2929
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
30-
--> $DIR/into-iter-on-arrays-lint.rs:19:15
30+
--> $DIR/into-iter-on-arrays-lint.rs:18:15
3131
|
3232
LL | [0u8; 33].into_iter();
3333
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -36,7 +36,7 @@ LL | [0u8; 33].into_iter();
3636
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
3737

3838
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
39-
--> $DIR/into-iter-on-arrays-lint.rs:23:21
39+
--> $DIR/into-iter-on-arrays-lint.rs:22:21
4040
|
4141
LL | Box::new(small).into_iter();
4242
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -45,7 +45,7 @@ LL | Box::new(small).into_iter();
4545
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
4646

4747
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
48-
--> $DIR/into-iter-on-arrays-lint.rs:26:22
48+
--> $DIR/into-iter-on-arrays-lint.rs:25:22
4949
|
5050
LL | Box::new([1, 2]).into_iter();
5151
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -54,7 +54,7 @@ LL | Box::new([1, 2]).into_iter();
5454
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
5555

5656
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
57-
--> $DIR/into-iter-on-arrays-lint.rs:29:19
57+
--> $DIR/into-iter-on-arrays-lint.rs:28:19
5858
|
5959
LL | Box::new(big).into_iter();
6060
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -63,7 +63,7 @@ LL | Box::new(big).into_iter();
6363
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
6464

6565
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
66-
--> $DIR/into-iter-on-arrays-lint.rs:32:25
66+
--> $DIR/into-iter-on-arrays-lint.rs:31:25
6767
|
6868
LL | Box::new([0u8; 33]).into_iter();
6969
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -72,7 +72,7 @@ LL | Box::new([0u8; 33]).into_iter();
7272
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
7373

7474
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
75-
--> $DIR/into-iter-on-arrays-lint.rs:36:31
75+
--> $DIR/into-iter-on-arrays-lint.rs:35:31
7676
|
7777
LL | Box::new(Box::new(small)).into_iter();
7878
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -81,7 +81,7 @@ LL | Box::new(Box::new(small)).into_iter();
8181
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
8282

8383
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
84-
--> $DIR/into-iter-on-arrays-lint.rs:39:32
84+
--> $DIR/into-iter-on-arrays-lint.rs:38:32
8585
|
8686
LL | Box::new(Box::new([1, 2])).into_iter();
8787
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -90,7 +90,7 @@ LL | Box::new(Box::new([1, 2])).into_iter();
9090
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
9191

9292
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
93-
--> $DIR/into-iter-on-arrays-lint.rs:42:29
93+
--> $DIR/into-iter-on-arrays-lint.rs:41:29
9494
|
9595
LL | Box::new(Box::new(big)).into_iter();
9696
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -99,7 +99,7 @@ LL | Box::new(Box::new(big)).into_iter();
9999
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
100100

101101
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
102-
--> $DIR/into-iter-on-arrays-lint.rs:45:35
102+
--> $DIR/into-iter-on-arrays-lint.rs:44:35
103103
|
104104
LL | Box::new(Box::new([0u8; 33])).into_iter();
105105
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -111,7 +111,7 @@ warning: 12 warnings emitted
111111

112112
Future incompatibility report: Future breakage date: None, diagnostic:
113113
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
114-
--> $DIR/into-iter-on-arrays-lint.rs:10:11
114+
--> $DIR/into-iter-on-arrays-lint.rs:9:11
115115
|
116116
LL | small.into_iter();
117117
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -122,7 +122,7 @@ LL | small.into_iter();
122122

123123
Future breakage date: None, diagnostic:
124124
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
125-
--> $DIR/into-iter-on-arrays-lint.rs:13:12
125+
--> $DIR/into-iter-on-arrays-lint.rs:12:12
126126
|
127127
LL | [1, 2].into_iter();
128128
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -132,7 +132,7 @@ LL | [1, 2].into_iter();
132132

133133
Future breakage date: None, diagnostic:
134134
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
135-
--> $DIR/into-iter-on-arrays-lint.rs:16:9
135+
--> $DIR/into-iter-on-arrays-lint.rs:15:9
136136
|
137137
LL | big.into_iter();
138138
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -142,7 +142,7 @@ LL | big.into_iter();
142142

143143
Future breakage date: None, diagnostic:
144144
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
145-
--> $DIR/into-iter-on-arrays-lint.rs:19:15
145+
--> $DIR/into-iter-on-arrays-lint.rs:18:15
146146
|
147147
LL | [0u8; 33].into_iter();
148148
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -152,7 +152,7 @@ LL | [0u8; 33].into_iter();
152152

153153
Future breakage date: None, diagnostic:
154154
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
155-
--> $DIR/into-iter-on-arrays-lint.rs:23:21
155+
--> $DIR/into-iter-on-arrays-lint.rs:22:21
156156
|
157157
LL | Box::new(small).into_iter();
158158
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -162,7 +162,7 @@ LL | Box::new(small).into_iter();
162162

163163
Future breakage date: None, diagnostic:
164164
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
165-
--> $DIR/into-iter-on-arrays-lint.rs:26:22
165+
--> $DIR/into-iter-on-arrays-lint.rs:25:22
166166
|
167167
LL | Box::new([1, 2]).into_iter();
168168
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -172,7 +172,7 @@ LL | Box::new([1, 2]).into_iter();
172172

173173
Future breakage date: None, diagnostic:
174174
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
175-
--> $DIR/into-iter-on-arrays-lint.rs:29:19
175+
--> $DIR/into-iter-on-arrays-lint.rs:28:19
176176
|
177177
LL | Box::new(big).into_iter();
178178
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -182,7 +182,7 @@ LL | Box::new(big).into_iter();
182182

183183
Future breakage date: None, diagnostic:
184184
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
185-
--> $DIR/into-iter-on-arrays-lint.rs:32:25
185+
--> $DIR/into-iter-on-arrays-lint.rs:31:25
186186
|
187187
LL | Box::new([0u8; 33]).into_iter();
188188
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -192,7 +192,7 @@ LL | Box::new([0u8; 33]).into_iter();
192192

193193
Future breakage date: None, diagnostic:
194194
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
195-
--> $DIR/into-iter-on-arrays-lint.rs:36:31
195+
--> $DIR/into-iter-on-arrays-lint.rs:35:31
196196
|
197197
LL | Box::new(Box::new(small)).into_iter();
198198
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -202,7 +202,7 @@ LL | Box::new(Box::new(small)).into_iter();
202202

203203
Future breakage date: None, diagnostic:
204204
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
205-
--> $DIR/into-iter-on-arrays-lint.rs:39:32
205+
--> $DIR/into-iter-on-arrays-lint.rs:38:32
206206
|
207207
LL | Box::new(Box::new([1, 2])).into_iter();
208208
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -212,7 +212,7 @@ LL | Box::new(Box::new([1, 2])).into_iter();
212212

213213
Future breakage date: None, diagnostic:
214214
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
215-
--> $DIR/into-iter-on-arrays-lint.rs:42:29
215+
--> $DIR/into-iter-on-arrays-lint.rs:41:29
216216
|
217217
LL | Box::new(Box::new(big)).into_iter();
218218
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -222,7 +222,7 @@ LL | Box::new(Box::new(big)).into_iter();
222222

223223
Future breakage date: None, diagnostic:
224224
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
225-
--> $DIR/into-iter-on-arrays-lint.rs:45:35
225+
--> $DIR/into-iter-on-arrays-lint.rs:44:35
226226
|
227227
LL | Box::new(Box::new([0u8; 33])).into_iter();
228228
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
@@ -232,13 +232,13 @@ LL | Box::new(Box::new([0u8; 33])).into_iter();
232232

233233
Future breakage date: None, diagnostic:
234234
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
235-
--> $DIR/into-iter-on-arrays-lint.rs:61:12
235+
--> $DIR/into-iter-on-arrays-lint.rs:60:12
236236
|
237237
LL | [0, 1].into_iter();
238238
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
239239
|
240240
note: the lint level is defined here
241-
--> $DIR/into-iter-on-arrays-lint.rs:60:13
241+
--> $DIR/into-iter-on-arrays-lint.rs:59:13
242242
|
243243
LL | #[allow(array_into_iter)]
244244
| ^^^^^^^^^^^^^^^

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,7 @@ impl<'test> TestCx<'test> {
19421942
}
19431943
rustc.arg("-Zui-testing");
19441944
rustc.arg("-Zdeduplicate-diagnostics=no");
1945+
rustc.arg("-Zemit-future-incompat-report");
19451946
}
19461947
MirOpt => {
19471948
rustc.args(&[

0 commit comments

Comments
 (0)