Skip to content

Commit ffcca4f

Browse files
Fix tests
1 parent b68b1cd commit ffcca4f

27 files changed

+38
-38
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 1st argument of type `core::alloc::Layout`
10+
| |_- unexpected 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 1st argument of type `&'static str`
21+
| unexpected 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-
| ^^^^^^^-- 1st argument of type `u32` is missing
34+
| ^^^^^^^-- an 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-
| ^^^^^^^-- 1st argument is missing
87+
| ^^^^^^^-- an 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-
| ^^^-- 1st argument of type `&dyn std::fmt::Display + Send` is missing
5+
| ^^^-- an 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 1st argument of type `i32`
7+
| unexpected 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 1st argument of type `i32`
22+
| unexpected 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 1st argument of type `i32`
37+
| unexpected 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 1st argument of type `i32`
52+
| unexpected argument of type `i32`
5353
| help: remove the extra argument
5454
|
5555
note: closure defined here

tests/ui/argument-suggestions/extra_arguments.stderr

Lines changed: 1 addition & 1 deletion
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 1st argument of type `&'static str`
7+
| unexpected argument of type `&'static str`
88
| help: remove the extra argument
99
|
1010
note: function defined here

tests/ui/argument-suggestions/missing_arguments.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/missing_arguments.rs:10:3
33
|
44
LL | one_arg();
5-
| ^^^^^^^-- 1st argument of type `i32` is missing
5+
| ^^^^^^^-- an argument of type `i32` is missing
66
|
77
note: function defined here
88
--> $DIR/missing_arguments.rs:1:4

tests/ui/associated-inherent-types/issue-109768.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ error[E0061]: this struct takes 1 argument but 0 arguments were supplied
3434
--> $DIR/issue-109768.rs:10:56
3535
|
3636
LL | const WRAPPED_ASSOC_3: Wrapper<Self::AssocType3> = Wrapper();
37-
| ^^^^^^^-- 1st argument is missing
37+
| ^^^^^^^-- an argument is missing
3838
|
3939
note: tuple struct defined here
4040
--> $DIR/issue-109768.rs:3:8

tests/ui/coroutine/issue-102645.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0061]: this method takes 1 argument but 0 arguments were supplied
22
--> $DIR/issue-102645.rs:15:22
33
|
44
LL | Pin::new(&mut b).resume();
5-
| ^^^^^^-- 1st argument of type `()` is missing
5+
| ^^^^^^-- an argument of type `()` is missing
66
|
77
note: method defined here
88
--> $SRC_DIR/core/src/ops/coroutine.rs:LL:COL

tests/ui/error-codes/E0057.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0057]: this function takes 1 argument but 0 arguments were supplied
22
--> $DIR/E0057.rs:3:13
33
|
44
LL | let a = f();
5-
| ^-- 1st argument is missing
5+
| ^-- an argument is missing
66
|
77
note: closure defined here
88
--> $DIR/E0057.rs:2:13

tests/ui/error-codes/E0060.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0060]: this function takes at least 1 argument but 0 arguments were suppl
22
--> $DIR/E0060.rs:6:14
33
|
44
LL | unsafe { printf(); }
5-
| ^^^^^^-- 1st argument of type `*const u8` is missing
5+
| ^^^^^^-- an argument of type `*const u8` is missing
66
|
77
note: function defined here
88
--> $DIR/E0060.rs:2:8

tests/ui/error-codes/E0061.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied
1818
--> $DIR/E0061.rs:9:5
1919
|
2020
LL | f2();
21-
| ^^-- 1st argument of type `u16` is missing
21+
| ^^-- an argument of type `u16` is missing
2222
|
2323
note: function defined here
2424
--> $DIR/E0061.rs:3:4

tests/ui/higher-ranked/trait-bounds/issue-58451.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/issue-58451.rs:12:9
33
|
44
LL | f(&[f()]);
5-
| ^-- 1st argument is missing
5+
| ^-- an argument is missing
66
|
77
note: function defined here
88
--> $DIR/issue-58451.rs:5:4

tests/ui/impl-trait/opaque-used-in-extraneous-argument.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
5959
LL | let old_path = frob("hello");
6060
| ^^^^ -------
6161
| |
62-
| unexpected 1st argument of type `&'static str`
62+
| unexpected argument of type `&'static str`
6363
| help: remove the extra argument
6464
|
6565
note: function defined here
@@ -74,7 +74,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
7474
LL | open_parent(&old_path)
7575
| ^^^^^^^^^^^ ---------
7676
| |
77-
| unexpected 1st argument of type `&impl FnOnce<{type error}, Output = {type error}> + Fn<{type error}> + 'static`
77+
| unexpected argument of type `&impl FnOnce<{type error}, Output = {type error}> + Fn<{type error}> + 'static`
7878
| help: remove the extra argument
7979
|
8080
note: function defined here

tests/ui/inference/ice-ifer-var-leaked-out-of-rollback-122098.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
5757
LL | LendingIterator::for_each(Query::new(&data), Box::new);
5858
| ^^^^^^^^^^ -----
5959
| |
60-
| unexpected 1st argument of type `&fn() {data}`
60+
| unexpected argument of type `&fn() {data}`
6161
| help: remove the extra argument
6262
|
6363
note: associated function defined here

tests/ui/issues/issue-16939.stderr

Lines changed: 1 addition & 1 deletion
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| f(t);
55
| ^ -
66
| |
7-
| unexpected 1st argument
7+
| unexpected argument
88
| help: remove the extra argument
99
|
1010
note: callable defined here

tests/ui/lifetimes/issue-26638.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied
5050
--> $DIR/issue-26638.rs:4:47
5151
|
5252
LL | fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
53-
| ^^^^-- 1st argument of type `&u8` is missing
53+
| ^^^^-- an argument of type `&u8` is missing
5454
|
5555
help: provide the argument
5656
|

tests/ui/macros/issue-26094.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro_rules! some_macro {
22
($other: expr) => {{
3-
$other(None) //~ NOTE unexpected 1st argument of type `Option<_>`
3+
$other(None) //~ NOTE unexpected argument of type `Option<_>`
44
}};
55
}
66

tests/ui/macros/issue-26094.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
22
--> $DIR/issue-26094.rs:10:17
33
|
44
LL | $other(None)
5-
| ---- unexpected 1st argument of type `Option<_>`
5+
| ---- unexpected argument of type `Option<_>`
66
...
77
LL | some_macro!(some_function);
88
| ^^^^^^^^^^^^^

tests/ui/methods/method-call-err-msg.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0061]: this method takes 0 arguments but 1 argument was supplied
44
LL | x.zero(0)
55
| ^^^^ -
66
| |
7-
| unexpected 1st argument of type `{integer}`
7+
| unexpected argument of type `{integer}`
88
| help: remove the extra argument
99
|
1010
note: method defined here
@@ -17,7 +17,7 @@ error[E0061]: this method takes 1 argument but 0 arguments were supplied
1717
--> $DIR/method-call-err-msg.rs:14:7
1818
|
1919
LL | .one()
20-
| ^^^-- 1st argument of type `isize` is missing
20+
| ^^^-- an argument of type `isize` is missing
2121
|
2222
note: method defined here
2323
--> $DIR/method-call-err-msg.rs:6:8

tests/ui/mismatched_types/overloaded-calls-bad.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error[E0057]: this function takes 1 argument but 0 arguments were supplied
1616
--> $DIR/overloaded-calls-bad.rs:35:15
1717
|
1818
LL | let ans = s();
19-
| ^-- 1st argument of type `isize` is missing
19+
| ^-- an argument of type `isize` is missing
2020
|
2121
note: implementation defined here
2222
--> $DIR/overloaded-calls-bad.rs:10:1

tests/ui/resolve/resolve-primitive-fallback.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
2626
LL | std::mem::size_of(u16);
2727
| ^^^^^^^^^^^^^^^^^ ---
2828
| |
29-
| unexpected 1st argument
29+
| unexpected argument
3030
| help: remove the extra argument
3131
|
3232
note: function defined here

tests/ui/span/missing-unit-argument.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
22
--> $DIR/missing-unit-argument.rs:11:33
33
|
44
LL | let _: Result<(), String> = Ok();
5-
| ^^-- 1st argument of type `()` is missing
5+
| ^^-- an argument of type `()` is missing
66
|
77
note: tuple variant defined here
88
--> $SRC_DIR/core/src/result.rs:LL:COL
@@ -47,7 +47,7 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied
4747
--> $DIR/missing-unit-argument.rs:14:5
4848
|
4949
LL | bar();
50-
| ^^^-- 1st argument of type `()` is missing
50+
| ^^^-- an argument of type `()` is missing
5151
|
5252
note: function defined here
5353
--> $DIR/missing-unit-argument.rs:2:4
@@ -63,7 +63,7 @@ error[E0061]: this method takes 1 argument but 0 arguments were supplied
6363
--> $DIR/missing-unit-argument.rs:15:7
6464
|
6565
LL | S.baz();
66-
| ^^^-- 1st argument of type `()` is missing
66+
| ^^^-- an argument of type `()` is missing
6767
|
6868
note: method defined here
6969
--> $DIR/missing-unit-argument.rs:6:8
@@ -79,7 +79,7 @@ error[E0061]: this method takes 1 argument but 0 arguments were supplied
7979
--> $DIR/missing-unit-argument.rs:16:7
8080
|
8181
LL | S.generic::<()>();
82-
| ^^^^^^^^^^^^^-- 1st argument of type `()` is missing
82+
| ^^^^^^^^^^^^^-- an argument of type `()` is missing
8383
|
8484
note: method defined here
8585
--> $DIR/missing-unit-argument.rs:7:8

tests/ui/suggestions/args-instead-of-tuple-errors.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
5454
--> $DIR/args-instead-of-tuple-errors.rs:11:28
5555
|
5656
LL | let _: Option<(i8,)> = Some();
57-
| ^^^^-- 1st argument of type `(i8,)` is missing
57+
| ^^^^-- an argument of type `(i8,)` is missing
5858
|
5959
note: tuple variant defined here
6060
--> $SRC_DIR/core/src/option.rs:LL:COL

tests/ui/suggestions/args-instead-of-tuple.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
2828
--> $DIR/args-instead-of-tuple.rs:11:25
2929
|
3030
LL | let _: Option<()> = Some();
31-
| ^^^^-- 1st argument of type `()` is missing
31+
| ^^^^-- an argument of type `()` is missing
3232
|
3333
note: tuple variant defined here
3434
--> $SRC_DIR/core/src/option.rs:LL:COL

tests/ui/tuple/wrong_argument_ice-4.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | | let b = 1;
88
LL | | });
99
| | -
1010
| | |
11-
| |_____unexpected 1st argument of type `{closure@$DIR/wrong_argument_ice-4.rs:2:13: 2:15}`
11+
| |_____unexpected argument of type `{closure@$DIR/wrong_argument_ice-4.rs:2:13: 2:15}`
1212
| help: remove the extra argument
1313
|
1414
note: closure defined here

tests/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
22
--> $DIR/enum-variant-priority-higher-than-other-inherent.rs:21:5
33
|
44
LL | <E>::V();
5-
| ^^^^^^-- 1st argument of type `u8` is missing
5+
| ^^^^^^-- an argument of type `u8` is missing
66
|
77
note: tuple variant defined here
88
--> $DIR/enum-variant-priority-higher-than-other-inherent.rs:5:5

tests/ui/typeck/struct-enum-wrong-args.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
3030
--> $DIR/struct-enum-wrong-args.rs:8:13
3131
|
3232
LL | let _ = Ok();
33-
| ^^-- 1st argument is missing
33+
| ^^-- an argument is missing
3434
|
3535
note: tuple variant defined here
3636
--> $SRC_DIR/core/src/result.rs:LL:COL
@@ -43,7 +43,7 @@ error[E0061]: this struct takes 1 argument but 0 arguments were supplied
4343
--> $DIR/struct-enum-wrong-args.rs:9:13
4444
|
4545
LL | let _ = Wrapper();
46-
| ^^^^^^^-- 1st argument of type `i32` is missing
46+
| ^^^^^^^-- an argument of type `i32` is missing
4747
|
4848
note: tuple struct defined here
4949
--> $DIR/struct-enum-wrong-args.rs:2:8

0 commit comments

Comments
 (0)