Skip to content

Commit

Permalink
Update ui test suite to nightly-2022-11-16
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 16, 2022
1 parent 4f194c9 commit ca41bdd
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ui/missing_colon.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ error: unexpected end of macro invocation
4 | json!({ "a" });
| ^^^^^^^^^^^^^^ missing tokens in macro arguments
|
note: while trying to match `@`
--> src/macros.rs
|
| (@array [$($elems:expr,)*]) => {
| ^
= 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)
6 changes: 6 additions & 0 deletions tests/ui/missing_comma.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ error: no rules expected the token `"2"`
| -^^^ no rules expected this token in macro call
| |
| help: missing comma here
|
note: while trying to match `,`
--> src/macros.rs
|
| ($e:expr , $($tt:tt)*) => {};
| ^
5 changes: 5 additions & 0 deletions tests/ui/missing_value.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ error: unexpected end of macro invocation
4 | json!({ "a" : });
| ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
|
note: while trying to match `@`
--> src/macros.rs
|
| (@array [$($elems:expr,)*]) => {
| ^
= 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)
6 changes: 6 additions & 0 deletions tests/ui/parse_expr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ error: no rules expected the token `~`
|
4 | json!({ "a" : ~ });
| ^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$e:expr`
--> src/macros.rs
|
| ($e:expr , $($tt:tt)*) => {};
| ^^^^^^^
2 changes: 2 additions & 0 deletions tests/ui/unexpected_after_array_element.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ error: no rules expected the token `=>`
|
4 | json!([ true => ]);
| ^^ no rules expected this token in macro call
|
= note: while trying to match end of macro
2 changes: 2 additions & 0 deletions tests/ui/unexpected_after_map_entry.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ error: no rules expected the token `=>`
|
4 | json!({ "k": true => });
| ^^ no rules expected this token in macro call
|
= note: while trying to match end of macro
2 changes: 2 additions & 0 deletions tests/ui/unexpected_colon.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ error: no rules expected the token `:`
|
4 | json!({ : true });
| ^ no rules expected this token in macro call
|
= note: while trying to match end of macro
2 changes: 2 additions & 0 deletions tests/ui/unexpected_comma.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ error: no rules expected the token `,`
|
4 | json!({ "a" , "b": true });
| ^ no rules expected this token in macro call
|
= note: while trying to match end of macro

0 comments on commit ca41bdd

Please sign in to comment.