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

0 commit comments

Comments
 (0)