Skip to content

Commit ca41bdd

Browse files
committed
Update ui test suite to nightly-2022-11-16
1 parent 4f194c9 commit ca41bdd

8 files changed

+30
-0
lines changed

tests/ui/missing_colon.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ error: unexpected end of macro invocation
44
4 | json!({ "a" });
55
| ^^^^^^^^^^^^^^ missing tokens in macro arguments
66
|
7+
note: while trying to match `@`
8+
--> src/macros.rs
9+
|
10+
| (@array [$($elems:expr,)*]) => {
11+
| ^
712
= note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui/missing_comma.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ error: no rules expected the token `"2"`
55
| -^^^ no rules expected this token in macro call
66
| |
77
| help: missing comma here
8+
|
9+
note: while trying to match `,`
10+
--> src/macros.rs
11+
|
12+
| ($e:expr , $($tt:tt)*) => {};
13+
| ^

tests/ui/missing_value.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ error: unexpected end of macro invocation
44
4 | json!({ "a" : });
55
| ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
66
|
7+
note: while trying to match `@`
8+
--> src/macros.rs
9+
|
10+
| (@array [$($elems:expr,)*]) => {
11+
| ^
712
= note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui/parse_expr.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `~`
33
|
44
4 | json!({ "a" : ~ });
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$e:expr`
8+
--> src/macros.rs
9+
|
10+
| ($e:expr , $($tt:tt)*) => {};
11+
| ^^^^^^^

tests/ui/unexpected_after_array_element.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ error: no rules expected the token `=>`
33
|
44
4 | json!([ true => ]);
55
| ^^ no rules expected this token in macro call
6+
|
7+
= note: while trying to match end of macro

tests/ui/unexpected_after_map_entry.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ error: no rules expected the token `=>`
33
|
44
4 | json!({ "k": true => });
55
| ^^ no rules expected this token in macro call
6+
|
7+
= note: while trying to match end of macro

tests/ui/unexpected_colon.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ error: no rules expected the token `:`
33
|
44
4 | json!({ : true });
55
| ^ no rules expected this token in macro call
6+
|
7+
= note: while trying to match end of macro

tests/ui/unexpected_comma.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ error: no rules expected the token `,`
33
|
44
4 | json!({ "a" , "b": true });
55
| ^ no rules expected this token in macro call
6+
|
7+
= note: while trying to match end of macro

0 commit comments

Comments
 (0)