Skip to content

Commit 6e1b054

Browse files
committed
Gate 2018 UI tests
1 parent 2741882 commit 6e1b054

File tree

253 files changed

+955
-806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+955
-806
lines changed

tests/ui/argument-suggestions/extra_arguments.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ edition:2015..2021
12
fn empty() {}
23
fn one_arg<T>(_a: T) {}
34
fn two_arg_same(_a: i32, _b: i32) {}

tests/ui/argument-suggestions/extra_arguments.stderr

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0061]: this function takes 0 arguments but 1 argument was supplied
2-
--> $DIR/extra_arguments.rs:19:3
2+
--> $DIR/extra_arguments.rs:20:3
33
|
44
LL | empty("");
55
| ^^^^^ -- unexpected argument of type `&'static str`
66
|
77
note: function defined here
8-
--> $DIR/extra_arguments.rs:1:4
8+
--> $DIR/extra_arguments.rs:2:4
99
|
1010
LL | fn empty() {}
1111
| ^^^^^
@@ -16,15 +16,15 @@ LL + empty();
1616
|
1717

1818
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
19-
--> $DIR/extra_arguments.rs:20:3
19+
--> $DIR/extra_arguments.rs:21:3
2020
|
2121
LL | empty(1, 1);
2222
| ^^^^^ - - unexpected argument #2 of type `{integer}`
2323
| |
2424
| unexpected argument #1 of type `{integer}`
2525
|
2626
note: function defined here
27-
--> $DIR/extra_arguments.rs:1:4
27+
--> $DIR/extra_arguments.rs:2:4
2828
|
2929
LL | fn empty() {}
3030
| ^^^^^
@@ -35,13 +35,13 @@ LL + empty();
3535
|
3636

3737
error[E0061]: this function takes 1 argument but 2 arguments were supplied
38-
--> $DIR/extra_arguments.rs:22:3
38+
--> $DIR/extra_arguments.rs:23:3
3939
|
4040
LL | one_arg(1, 1);
4141
| ^^^^^^^ - unexpected argument #2 of type `{integer}`
4242
|
4343
note: function defined here
44-
--> $DIR/extra_arguments.rs:2:4
44+
--> $DIR/extra_arguments.rs:3:4
4545
|
4646
LL | fn one_arg<T>(_a: T) {}
4747
| ^^^^^^^
@@ -52,13 +52,13 @@ LL + one_arg(1);
5252
|
5353

5454
error[E0061]: this function takes 1 argument but 2 arguments were supplied
55-
--> $DIR/extra_arguments.rs:23:3
55+
--> $DIR/extra_arguments.rs:24:3
5656
|
5757
LL | one_arg(1, "");
5858
| ^^^^^^^ -- unexpected argument #2 of type `&'static str`
5959
|
6060
note: function defined here
61-
--> $DIR/extra_arguments.rs:2:4
61+
--> $DIR/extra_arguments.rs:3:4
6262
|
6363
LL | fn one_arg<T>(_a: T) {}
6464
| ^^^^^^^
@@ -69,15 +69,15 @@ LL + one_arg(1);
6969
|
7070

7171
error[E0061]: this function takes 1 argument but 3 arguments were supplied
72-
--> $DIR/extra_arguments.rs:24:3
72+
--> $DIR/extra_arguments.rs:25:3
7373
|
7474
LL | one_arg(1, "", 1.0);
7575
| ^^^^^^^ -- --- unexpected argument #3 of type `{float}`
7676
| |
7777
| unexpected argument #2 of type `&'static str`
7878
|
7979
note: function defined here
80-
--> $DIR/extra_arguments.rs:2:4
80+
--> $DIR/extra_arguments.rs:3:4
8181
|
8282
LL | fn one_arg<T>(_a: T) {}
8383
| ^^^^^^^
@@ -88,13 +88,13 @@ LL + one_arg(1);
8888
|
8989

9090
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
91-
--> $DIR/extra_arguments.rs:26:3
91+
--> $DIR/extra_arguments.rs:27:3
9292
|
9393
LL | two_arg_same(1, 1, 1);
9494
| ^^^^^^^^^^^^ - unexpected argument #3 of type `{integer}`
9595
|
9696
note: function defined here
97-
--> $DIR/extra_arguments.rs:3:4
97+
--> $DIR/extra_arguments.rs:4:4
9898
|
9999
LL | fn two_arg_same(_a: i32, _b: i32) {}
100100
| ^^^^^^^^^^^^
@@ -105,13 +105,13 @@ LL + two_arg_same(1, 1);
105105
|
106106

107107
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
108-
--> $DIR/extra_arguments.rs:27:3
108+
--> $DIR/extra_arguments.rs:28:3
109109
|
110110
LL | two_arg_same(1, 1, 1.0);
111111
| ^^^^^^^^^^^^ --- unexpected argument #3 of type `{float}`
112112
|
113113
note: function defined here
114-
--> $DIR/extra_arguments.rs:3:4
114+
--> $DIR/extra_arguments.rs:4:4
115115
|
116116
LL | fn two_arg_same(_a: i32, _b: i32) {}
117117
| ^^^^^^^^^^^^
@@ -122,13 +122,13 @@ LL + two_arg_same(1, 1);
122122
|
123123

124124
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
125-
--> $DIR/extra_arguments.rs:29:3
125+
--> $DIR/extra_arguments.rs:30:3
126126
|
127127
LL | two_arg_diff(1, 1, "");
128128
| ^^^^^^^^^^^^ - unexpected argument #2 of type `{integer}`
129129
|
130130
note: function defined here
131-
--> $DIR/extra_arguments.rs:4:4
131+
--> $DIR/extra_arguments.rs:5:4
132132
|
133133
LL | fn two_arg_diff(_a: i32, _b: &str) {}
134134
| ^^^^^^^^^^^^
@@ -139,13 +139,13 @@ LL + two_arg_diff(1, "");
139139
|
140140

141141
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
142-
--> $DIR/extra_arguments.rs:30:3
142+
--> $DIR/extra_arguments.rs:31:3
143143
|
144144
LL | two_arg_diff(1, "", "");
145145
| ^^^^^^^^^^^^ -- unexpected argument #3 of type `&'static str`
146146
|
147147
note: function defined here
148-
--> $DIR/extra_arguments.rs:4:4
148+
--> $DIR/extra_arguments.rs:5:4
149149
|
150150
LL | fn two_arg_diff(_a: i32, _b: &str) {}
151151
| ^^^^^^^^^^^^
@@ -156,15 +156,15 @@ LL + two_arg_diff(1, "");
156156
|
157157

158158
error[E0061]: this function takes 2 arguments but 4 arguments were supplied
159-
--> $DIR/extra_arguments.rs:31:3
159+
--> $DIR/extra_arguments.rs:32:3
160160
|
161161
LL | two_arg_diff(1, 1, "", "");
162162
| ^^^^^^^^^^^^ - -- unexpected argument #4 of type `&'static str`
163163
| |
164164
| unexpected argument #2 of type `{integer}`
165165
|
166166
note: function defined here
167-
--> $DIR/extra_arguments.rs:4:4
167+
--> $DIR/extra_arguments.rs:5:4
168168
|
169169
LL | fn two_arg_diff(_a: i32, _b: &str) {}
170170
| ^^^^^^^^^^^^
@@ -175,15 +175,15 @@ LL + two_arg_diff(1, "");
175175
|
176176

177177
error[E0061]: this function takes 2 arguments but 4 arguments were supplied
178-
--> $DIR/extra_arguments.rs:32:3
178+
--> $DIR/extra_arguments.rs:33:3
179179
|
180180
LL | two_arg_diff(1, "", 1, "");
181181
| ^^^^^^^^^^^^ - -- unexpected argument #4 of type `&'static str`
182182
| |
183183
| unexpected argument #3 of type `{integer}`
184184
|
185185
note: function defined here
186-
--> $DIR/extra_arguments.rs:4:4
186+
--> $DIR/extra_arguments.rs:5:4
187187
|
188188
LL | fn two_arg_diff(_a: i32, _b: &str) {}
189189
| ^^^^^^^^^^^^
@@ -194,13 +194,13 @@ LL + two_arg_diff(1, "");
194194
|
195195

196196
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
197-
--> $DIR/extra_arguments.rs:35:3
197+
--> $DIR/extra_arguments.rs:36:3
198198
|
199199
LL | two_arg_same(1, 1, "");
200200
| ^^^^^^^^^^^^ -- unexpected argument #3 of type `&'static str`
201201
|
202202
note: function defined here
203-
--> $DIR/extra_arguments.rs:3:4
203+
--> $DIR/extra_arguments.rs:4:4
204204
|
205205
LL | fn two_arg_same(_a: i32, _b: i32) {}
206206
| ^^^^^^^^^^^^
@@ -211,13 +211,13 @@ LL + two_arg_same(1, 1);
211211
|
212212

213213
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
214-
--> $DIR/extra_arguments.rs:36:3
214+
--> $DIR/extra_arguments.rs:37:3
215215
|
216216
LL | two_arg_diff(1, 1, "");
217217
| ^^^^^^^^^^^^ - unexpected argument #2 of type `{integer}`
218218
|
219219
note: function defined here
220-
--> $DIR/extra_arguments.rs:4:4
220+
--> $DIR/extra_arguments.rs:5:4
221221
|
222222
LL | fn two_arg_diff(_a: i32, _b: &str) {}
223223
| ^^^^^^^^^^^^
@@ -228,7 +228,7 @@ LL + two_arg_diff(1, "");
228228
|
229229

230230
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
231-
--> $DIR/extra_arguments.rs:37:3
231+
--> $DIR/extra_arguments.rs:38:3
232232
|
233233
LL | two_arg_same(
234234
| ^^^^^^^^^^^^
@@ -237,7 +237,7 @@ LL | ""
237237
| -- unexpected argument #3 of type `&'static str`
238238
|
239239
note: function defined here
240-
--> $DIR/extra_arguments.rs:3:4
240+
--> $DIR/extra_arguments.rs:4:4
241241
|
242242
LL | fn two_arg_same(_a: i32, _b: i32) {}
243243
| ^^^^^^^^^^^^
@@ -249,7 +249,7 @@ LL + 1
249249
|
250250

251251
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
252-
--> $DIR/extra_arguments.rs:43:3
252+
--> $DIR/extra_arguments.rs:44:3
253253
|
254254
LL | two_arg_diff(
255255
| ^^^^^^^^^^^^
@@ -258,7 +258,7 @@ LL | 1,
258258
| - unexpected argument #2 of type `{integer}`
259259
|
260260
note: function defined here
261-
--> $DIR/extra_arguments.rs:4:4
261+
--> $DIR/extra_arguments.rs:5:4
262262
|
263263
LL | fn two_arg_diff(_a: i32, _b: &str) {}
264264
| ^^^^^^^^^^^^
@@ -268,7 +268,7 @@ LL - 1,
268268
|
269269

270270
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
271-
--> $DIR/extra_arguments.rs:8:9
271+
--> $DIR/extra_arguments.rs:9:9
272272
|
273273
LL | empty($x, 1);
274274
| ^^^^^ - unexpected argument #2 of type `{integer}`
@@ -280,14 +280,14 @@ LL | foo!(1, ~);
280280
| in this macro invocation
281281
|
282282
note: function defined here
283-
--> $DIR/extra_arguments.rs:1:4
283+
--> $DIR/extra_arguments.rs:2:4
284284
|
285285
LL | fn empty() {}
286286
| ^^^^^
287287
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
288288

289289
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
290-
--> $DIR/extra_arguments.rs:14:9
290+
--> $DIR/extra_arguments.rs:15:9
291291
|
292292
LL | empty(1, $y);
293293
| ^^^^^ - unexpected argument #1 of type `{integer}`
@@ -299,14 +299,14 @@ LL | foo!(~, 1);
299299
| in this macro invocation
300300
|
301301
note: function defined here
302-
--> $DIR/extra_arguments.rs:1:4
302+
--> $DIR/extra_arguments.rs:2:4
303303
|
304304
LL | fn empty() {}
305305
| ^^^^^
306306
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
307307

308308
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
309-
--> $DIR/extra_arguments.rs:11:9
309+
--> $DIR/extra_arguments.rs:12:9
310310
|
311311
LL | empty($x, $y);
312312
| ^^^^^
@@ -319,20 +319,20 @@ LL | foo!(1, 1);
319319
| in this macro invocation
320320
|
321321
note: function defined here
322-
--> $DIR/extra_arguments.rs:1:4
322+
--> $DIR/extra_arguments.rs:2:4
323323
|
324324
LL | fn empty() {}
325325
| ^^^^^
326326
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
327327

328328
error[E0061]: this function takes 1 argument but 2 arguments were supplied
329-
--> $DIR/extra_arguments.rs:53:3
329+
--> $DIR/extra_arguments.rs:54:3
330330
|
331331
LL | one_arg(1, panic!());
332332
| ^^^^^^^ -------- unexpected argument #2
333333
|
334334
note: function defined here
335-
--> $DIR/extra_arguments.rs:2:4
335+
--> $DIR/extra_arguments.rs:3:4
336336
|
337337
LL | fn one_arg<T>(_a: T) {}
338338
| ^^^^^^^
@@ -343,13 +343,13 @@ LL + one_arg(1);
343343
|
344344

345345
error[E0061]: this function takes 1 argument but 2 arguments were supplied
346-
--> $DIR/extra_arguments.rs:54:3
346+
--> $DIR/extra_arguments.rs:55:3
347347
|
348348
LL | one_arg(panic!(), 1);
349349
| ^^^^^^^ - unexpected argument #2 of type `{integer}`
350350
|
351351
note: function defined here
352-
--> $DIR/extra_arguments.rs:2:4
352+
--> $DIR/extra_arguments.rs:3:4
353353
|
354354
LL | fn one_arg<T>(_a: T) {}
355355
| ^^^^^^^
@@ -360,13 +360,13 @@ LL + one_arg(panic!());
360360
|
361361

362362
error[E0061]: this function takes 1 argument but 2 arguments were supplied
363-
--> $DIR/extra_arguments.rs:55:3
363+
--> $DIR/extra_arguments.rs:56:3
364364
|
365365
LL | one_arg(stringify!($e), 1);
366366
| ^^^^^^^ - unexpected argument #2 of type `{integer}`
367367
|
368368
note: function defined here
369-
--> $DIR/extra_arguments.rs:2:4
369+
--> $DIR/extra_arguments.rs:3:4
370370
|
371371
LL | fn one_arg<T>(_a: T) {}
372372
| ^^^^^^^
@@ -377,13 +377,13 @@ LL + one_arg(stringify!($e));
377377
|
378378

379379
error[E0061]: this function takes 1 argument but 2 arguments were supplied
380-
--> $DIR/extra_arguments.rs:60:3
380+
--> $DIR/extra_arguments.rs:61:3
381381
|
382382
LL | one_arg(for _ in 1.. {}, 1);
383383
| ^^^^^^^ - unexpected argument #2 of type `{integer}`
384384
|
385385
note: function defined here
386-
--> $DIR/extra_arguments.rs:2:4
386+
--> $DIR/extra_arguments.rs:3:4
387387
|
388388
LL | fn one_arg<T>(_a: T) {}
389389
| ^^^^^^^

tests/ui/associated-consts/associated-const-range-match-patterns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ edition:2015..2021
12
//@ run-pass
23
#![allow(dead_code, unreachable_patterns)]
34
#![allow(ellipsis_inclusive_range_patterns)]

tests/ui/associated-type-bounds/overlaping-bound-suggestion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ edition:2015..2021
12
#![allow(bare_trait_objects)]
23
trait Item {
34
type Core;

tests/ui/associated-type-bounds/overlaping-bound-suggestion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0191]: the value of the associated types `Item` and `IntoIter` in `IntoIterator` must be specified
2-
--> $DIR/overlaping-bound-suggestion.rs:6:13
2+
--> $DIR/overlaping-bound-suggestion.rs:7:13
33
|
44
LL | inner: <IntoIterator<Item: IntoIterator<Item: >>::IntoIterator as Item>::Core,
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated types: `IntoIterator<Item: IntoIterator<Item: >, Item = Type, IntoIter = Type>`

tests/ui/associated-types/issue-43924.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ edition:2015..2021
12
#![feature(associated_type_defaults)]
23

34
// This used to cause an ICE because assoc. type defaults weren't properly

0 commit comments

Comments
 (0)