Skip to content

Commit 2e0f26b

Browse files
Fix test files
1 parent 8febd42 commit 2e0f26b

File tree

53 files changed

+143
-143
lines changed

Some content is hidden

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

53 files changed

+143
-143
lines changed

tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn oom() -> ! {
77
| _-^^^^^^^^^^^^
88
LL | | loop {}
99
LL | | }
10-
| |_- unexpected argument of type `core::alloc::Layout`
10+
| |_- unexpected 1st argument of type `core::alloc::Layout`
1111
|
1212
note: function defined here
1313
--> $DIR/alloc-error-handler-bad-signature-3.rs:10:4

tests/ui/argument-suggestions/basic.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
1818
LL | extra("");
1919
| ^^^^^ --
2020
| |
21-
| unexpected argument of type `&'static str`
21+
| unexpected 1st argument of type `&'static str`
2222
| help: remove the extra argument
2323
|
2424
note: function defined here
@@ -31,7 +31,7 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied
3131
--> $DIR/basic.rs:22:5
3232
|
3333
LL | missing();
34-
| ^^^^^^^-- an argument of type `u32` is missing
34+
| ^^^^^^^-- 1st argument of type `u32` is missing
3535
|
3636
note: function defined here
3737
--> $DIR/basic.rs:15:4
@@ -84,7 +84,7 @@ error[E0057]: this function takes 1 argument but 0 arguments were supplied
8484
--> $DIR/basic.rs:27:5
8585
|
8686
LL | closure();
87-
| ^^^^^^^-- an argument is missing
87+
| ^^^^^^^-- 1st argument is missing
8888
|
8989
note: closure defined here
9090
--> $DIR/basic.rs:26:19

tests/ui/argument-suggestions/display-is-suggestable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied
22
--> $DIR/display-is-suggestable.rs:6:5
33
|
44
LL | foo();
5-
| ^^^-- an argument of type `&dyn std::fmt::Display + Send` is missing
5+
| ^^^-- 1st argument of type `&dyn std::fmt::Display + Send` is missing
66
|
77
note: function defined here
88
--> $DIR/display-is-suggestable.rs:3:4

tests/ui/argument-suggestions/exotic-calls.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
44
LL | t(1i32);
55
| ^ ----
66
| |
7-
| unexpected argument of type `i32`
7+
| unexpected 1st argument of type `i32`
88
| help: remove the extra argument
99
|
1010
note: callable defined here
@@ -19,7 +19,7 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
1919
LL | t(1i32);
2020
| ^ ----
2121
| |
22-
| unexpected argument of type `i32`
22+
| unexpected 1st argument of type `i32`
2323
| help: remove the extra argument
2424
|
2525
note: type parameter defined here
@@ -34,7 +34,7 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
3434
LL | baz()(1i32)
3535
| ^^^^^ ----
3636
| |
37-
| unexpected argument of type `i32`
37+
| unexpected 1st argument of type `i32`
3838
| help: remove the extra argument
3939
|
4040
note: opaque type defined here
@@ -49,7 +49,7 @@ error[E0057]: this function takes 0 arguments but 1 argument was supplied
4949
LL | x(1i32);
5050
| ^ ----
5151
| |
52-
| unexpected argument of type `i32`
52+
| unexpected 1st argument of type `i32`
5353
| help: remove the extra argument
5454
|
5555
note: closure defined here

tests/ui/argument-suggestions/extern-fn-arg-names.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0061]: this function takes 2 arguments but 1 argument was supplied
88
--> $DIR/extern-fn-arg-names.rs:7:5
99
|
1010
LL | dstfn(1);
11-
| ^^^^^--- an argument is missing
11+
| ^^^^^--- 2nd argument is missing
1212
|
1313
note: function defined here
1414
--> $DIR/extern-fn-arg-names.rs:2:8

tests/ui/argument-suggestions/extra_arguments.stderr

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
44
LL | empty("");
55
| ^^^^^ --
66
| |
7-
| unexpected argument of type `&'static str`
7+
| unexpected 1st argument of type `&'static str`
88
| help: remove the extra argument
99
|
1010
note: function defined here
@@ -17,9 +17,9 @@ error[E0061]: this function takes 0 arguments but 2 arguments were supplied
1717
--> $DIR/extra_arguments.rs:20:3
1818
|
1919
LL | empty(1, 1);
20-
| ^^^^^ - - unexpected argument of type `{integer}`
20+
| ^^^^^ - - unexpected 2nd argument of type `{integer}`
2121
| |
22-
| unexpected argument of type `{integer}`
22+
| unexpected 1st argument of type `{integer}`
2323
|
2424
note: function defined here
2525
--> $DIR/extra_arguments.rs:1:4
@@ -38,7 +38,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
3838
LL | one_arg(1, 1);
3939
| ^^^^^^^ ---
4040
| | |
41-
| | unexpected argument of type `{integer}`
41+
| | unexpected 2nd argument of type `{integer}`
4242
| help: remove the extra argument
4343
|
4444
note: function defined here
@@ -53,7 +53,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
5353
LL | one_arg(1, "");
5454
| ^^^^^^^ ----
5555
| | |
56-
| | unexpected argument of type `&'static str`
56+
| | unexpected 2nd argument of type `&'static str`
5757
| help: remove the extra argument
5858
|
5959
note: function defined here
@@ -66,9 +66,9 @@ error[E0061]: this function takes 1 argument but 3 arguments were supplied
6666
--> $DIR/extra_arguments.rs:24:3
6767
|
6868
LL | one_arg(1, "", 1.0);
69-
| ^^^^^^^ -- --- unexpected argument of type `{float}`
69+
| ^^^^^^^ -- --- unexpected 3rd argument of type `{float}`
7070
| |
71-
| unexpected argument of type `&'static str`
71+
| unexpected 2nd argument of type `&'static str`
7272
|
7373
note: function defined here
7474
--> $DIR/extra_arguments.rs:2:4
@@ -87,7 +87,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
8787
LL | two_arg_same(1, 1, 1);
8888
| ^^^^^^^^^^^^ ---
8989
| | |
90-
| | unexpected argument of type `{integer}`
90+
| | unexpected 3rd argument of type `{integer}`
9191
| help: remove the extra argument
9292
|
9393
note: function defined here
@@ -102,7 +102,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
102102
LL | two_arg_same(1, 1, 1.0);
103103
| ^^^^^^^^^^^^ -----
104104
| | |
105-
| | unexpected argument of type `{float}`
105+
| | unexpected 3rd argument of type `{float}`
106106
| help: remove the extra argument
107107
|
108108
note: function defined here
@@ -117,7 +117,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
117117
LL | two_arg_diff(1, 1, "");
118118
| ^^^^^^^^^^^^ ---
119119
| | |
120-
| | unexpected argument of type `{integer}`
120+
| | unexpected 2nd argument of type `{integer}`
121121
| help: remove the extra argument
122122
|
123123
note: function defined here
@@ -132,7 +132,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
132132
LL | two_arg_diff(1, "", "");
133133
| ^^^^^^^^^^^^ ----
134134
| | |
135-
| | unexpected argument of type `&'static str`
135+
| | unexpected 3rd argument of type `&'static str`
136136
| help: remove the extra argument
137137
|
138138
note: function defined here
@@ -145,9 +145,9 @@ error[E0061]: this function takes 2 arguments but 4 arguments were supplied
145145
--> $DIR/extra_arguments.rs:31:3
146146
|
147147
LL | two_arg_diff(1, 1, "", "");
148-
| ^^^^^^^^^^^^ - -- unexpected argument of type `&'static str`
148+
| ^^^^^^^^^^^^ - -- unexpected 4th argument of type `&'static str`
149149
| |
150-
| unexpected argument of type `{integer}`
150+
| unexpected 2nd argument of type `{integer}`
151151
|
152152
note: function defined here
153153
--> $DIR/extra_arguments.rs:4:4
@@ -164,9 +164,9 @@ error[E0061]: this function takes 2 arguments but 4 arguments were supplied
164164
--> $DIR/extra_arguments.rs:32:3
165165
|
166166
LL | two_arg_diff(1, "", 1, "");
167-
| ^^^^^^^^^^^^ - -- unexpected argument of type `&'static str`
167+
| ^^^^^^^^^^^^ - -- unexpected 4th argument of type `&'static str`
168168
| |
169-
| unexpected argument of type `{integer}`
169+
| unexpected 3rd argument of type `{integer}`
170170
|
171171
note: function defined here
172172
--> $DIR/extra_arguments.rs:4:4
@@ -185,7 +185,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
185185
LL | two_arg_same(1, 1, "");
186186
| ^^^^^^^^^^^^ --------
187187
| | |
188-
| | unexpected argument of type `&'static str`
188+
| | unexpected 3rd argument of type `&'static str`
189189
| help: remove the extra argument
190190
|
191191
note: function defined here
@@ -200,7 +200,7 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
200200
LL | two_arg_diff(1, 1, "");
201201
| ^^^^^^^^^^^^ ---
202202
| | |
203-
| | unexpected argument of type `{integer}`
203+
| | unexpected 2nd argument of type `{integer}`
204204
| help: remove the extra argument
205205
|
206206
note: function defined here
@@ -221,7 +221,7 @@ LL | | ""
221221
| | --
222222
| |_____||
223223
| |help: remove the extra argument
224-
| unexpected argument of type `&'static str`
224+
| unexpected 3rd argument of type `&'static str`
225225
|
226226
note: function defined here
227227
--> $DIR/extra_arguments.rs:3:4
@@ -239,7 +239,7 @@ LL | 1,
239239
LL | | 1,
240240
| | -
241241
| | |
242-
| |_____unexpected argument of type `{integer}`
242+
| |_____unexpected 2nd argument of type `{integer}`
243243
| help: remove the extra argument
244244
|
245245
note: function defined here
@@ -252,12 +252,12 @@ error[E0061]: this function takes 0 arguments but 2 arguments were supplied
252252
--> $DIR/extra_arguments.rs:8:9
253253
|
254254
LL | empty($x, 1);
255-
| ^^^^^ - unexpected argument of type `{integer}`
255+
| ^^^^^ - unexpected 2nd argument of type `{integer}`
256256
...
257257
LL | foo!(1, ~);
258258
| ----------
259259
| | |
260-
| | unexpected argument of type `{integer}`
260+
| | unexpected 1st argument of type `{integer}`
261261
| in this macro invocation
262262
|
263263
note: function defined here
@@ -271,12 +271,12 @@ error[E0061]: this function takes 0 arguments but 2 arguments were supplied
271271
--> $DIR/extra_arguments.rs:14:9
272272
|
273273
LL | empty(1, $y);
274-
| ^^^^^ - unexpected argument of type `{integer}`
274+
| ^^^^^ - unexpected 1st argument of type `{integer}`
275275
...
276276
LL | foo!(~, 1);
277277
| ----------
278278
| | |
279-
| | unexpected argument of type `{integer}`
279+
| | unexpected 2nd argument of type `{integer}`
280280
| in this macro invocation
281281
|
282282
note: function defined here
@@ -295,8 +295,8 @@ LL | empty($x, $y);
295295
LL | foo!(1, 1);
296296
| ----------
297297
| | | |
298-
| | | unexpected argument of type `{integer}`
299-
| | unexpected argument of type `{integer}`
298+
| | | unexpected 2nd argument of type `{integer}`
299+
| | unexpected 1st argument of type `{integer}`
300300
| in this macro invocation
301301
|
302302
note: function defined here
@@ -312,7 +312,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
312312
LL | one_arg(1, panic!());
313313
| ^^^^^^^ ----------
314314
| | |
315-
| | unexpected argument
315+
| | unexpected 2nd argument
316316
| help: remove the extra argument
317317
|
318318
note: function defined here
@@ -327,7 +327,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
327327
LL | one_arg(panic!(), 1);
328328
| ^^^^^^^ ---
329329
| | |
330-
| | unexpected argument of type `{integer}`
330+
| | unexpected 2nd argument of type `{integer}`
331331
| help: remove the extra argument
332332
|
333333
note: function defined here
@@ -342,7 +342,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
342342
LL | one_arg(stringify!($e), 1);
343343
| ^^^^^^^ ---
344344
| | |
345-
| | unexpected argument of type `{integer}`
345+
| | unexpected 2nd argument of type `{integer}`
346346
| help: remove the extra argument
347347
|
348348
note: function defined here
@@ -357,7 +357,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
357357
LL | one_arg(for _ in 1.. {}, 1);
358358
| ^^^^^^^ ---
359359
| | |
360-
| | unexpected argument of type `{integer}`
360+
| | unexpected 2nd argument of type `{integer}`
361361
| help: remove the extra argument
362362
|
363363
note: function defined here

tests/ui/argument-suggestions/issue-100478.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error[E0061]: this function takes 3 arguments but 1 argument was supplied
44
LL | three_diff(T2::new(0));
55
| ^^^^^^^^^^------------
66
| ||
7-
| |an argument of type `T1` is missing
8-
| an argument of type `T3` is missing
7+
| |1st argument of type `T1` is missing
8+
| 3rd argument of type `T3` is missing
99
|
1010
note: function defined here
1111
--> $DIR/issue-100478.rs:30:4
@@ -63,7 +63,7 @@ LL | foo(
6363
| ^^^
6464
...
6565
LL | p3, p4, p5, p6, p7, p8,
66-
| -- an argument of type `Arc<T2>` is missing
66+
| -- 2nd argument of type `Arc<T2>` is missing
6767
|
6868
note: function defined here
6969
--> $DIR/issue-100478.rs:29:4

tests/ui/argument-suggestions/issue-101097.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0061]: this function takes 6 arguments but 7 arguments were supplied
44
LL | f(C, A, A, A, B, B, C);
55
| ^ - - - - expected `C`, found `B`
66
| | | |
7-
| | | unexpected argument of type `A`
7+
| | | unexpected 4th argument of type `A`
88
| | expected `B`, found `A`
99
| expected `A`, found `C`
1010
|
@@ -64,8 +64,8 @@ error[E0308]: arguments to this function are incorrect
6464
LL | f(A, A, D, D, B, B);
6565
| ^ - - ---- two arguments of type `C` and `C` are missing
6666
| | |
67-
| | unexpected argument of type `D`
68-
| unexpected argument of type `D`
67+
| | unexpected 4th argument of type `D`
68+
| unexpected 3rd argument of type `D`
6969
|
7070
note: function defined here
7171
--> $DIR/issue-101097.rs:6:4

0 commit comments

Comments
 (0)