Skip to content

Commit 5e79390

Browse files
committed
Fix trybuild outputs.
1 parent c51798a commit 5e79390

14 files changed

+80
-0
lines changed

tests/trybuild/entities/comma_alone.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
4 | let entities = entities!(,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match `(`
8+
--> src/entities/mod.rs
9+
|
10+
| (($component:expr $(,$components:expr)* $(,)?); $n:expr) => {
11+
| ^

tests/trybuild/entities/double_comma.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
8 | let entities = entities!((A, B),, (A, B));
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match `(`
8+
--> src/entities/mod.rs
9+
|
10+
| ($(($($components:expr),*)),+ $(,)?) => {
11+
| ^

tests/trybuild/entities/semicolon_separated.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `;`
33
|
44
10 | let entities = entities!((A, B); (A, B); (A, B));
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$n:expr`
8+
--> src/entities/mod.rs
9+
|
10+
| (($component:expr $(,$components:expr)* $(,)?); $n:expr) => {
11+
| ^^^^^^^

tests/trybuild/entities/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
8 | let entities = entities!((A, B), (A, B), + (A, B));
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match `(`
8+
--> src/entities/mod.rs
9+
|
10+
| ($(($($components:expr),*)),+ $(,)?) => {
11+
| ^

tests/trybuild/entity/comma_alone.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
4 | let entity = entity!(,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$component:expr`
8+
--> src/entity/mod.rs
9+
|
10+
| ($component:expr $(,$components:expr)* $(,)?) => {
11+
| ^^^^^^^^^^^^^^^

tests/trybuild/entity/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
8 | let entity = entity!(A, + B,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$components:expr`
8+
--> src/entity/mod.rs
9+
|
10+
| ($component:expr $(,$components:expr)* $(,)?) => {
11+
| ^^^^^^^^^^^^^^^^

tests/trybuild/registry/comma_alone.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
3 | type Registry = registry!(,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$component:ty`
8+
--> src/registry/mod.rs
9+
|
10+
| ($component:ty $(,$components:ty)* $(,)?) => {
11+
| ^^^^^^^^^^^^^

tests/trybuild/registry/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
7 | type Registry = registry!(A, + B,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$components:ty`
8+
--> src/registry/mod.rs
9+
|
10+
| ($component:ty $(,$components:ty)* $(,)?) => {
11+
| ^^^^^^^^^^^^^^

tests/trybuild/result/comma_alone.stderr

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

tests/trybuild/result/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
8 | let result!(a, + b) = (A, (A, view::Null));
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$components:ident`
8+
--> src/query/result/mod.rs
9+
|
10+
| ($component:ident $(,$components:ident)* $(,)?) => (
11+
| ^^^^^^^^^^^^^^^^^

tests/trybuild/schedule/comma_alone.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
4 | let schedule = schedule!(,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$task:expr`
8+
--> src/system/schedule/mod.rs
9+
|
10+
| ($task:expr $(,$tasks:expr)* $(,)?) => (
11+
| ^^^^^^^^^^

tests/trybuild/schedule/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
36 | let schedule = schedule!(task::System(A), + task::System(B),);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$tasks:expr`
8+
--> src/system/schedule/mod.rs
9+
|
10+
| ($task:expr $(,$tasks:expr)* $(,)?) => (
11+
| ^^^^^^^^^^^

tests/trybuild/views/comma_alone.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `,`
33
|
44
3 | type Views = views!(,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$view:ty`
8+
--> src/query/view/mod.rs
9+
|
10+
| ($view:ty $(,$views:ty)* $(,)?) => (
11+
| ^^^^^^^^

tests/trybuild/views/unexpected_token.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ error: no rules expected the token `+`
33
|
44
7 | type Views = views!(&A, + &B,);
55
| ^ no rules expected this token in macro call
6+
|
7+
note: while trying to match meta-variable `$views:ty`
8+
--> src/query/view/mod.rs
9+
|
10+
| ($view:ty $(,$views:ty)* $(,)?) => (
11+
| ^^^^^^^^^

0 commit comments

Comments
 (0)