diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 17:41:37 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 17:41:37 +0100 |
commit | 040b4c800d5279e77a6825fc90cb2921d26c7f95 (patch) | |
tree | 17de1c83aa3d392902777c9eebbbb17f14b05e12 /xtask | |
parent | d21b5db891d605c7c10118daca1f06c09c14b07e (diff) |
Fix GenericArgs grammar
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index cb4cd49fe..fa18acbb3 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -8,12 +8,13 @@ PathSegment = | |||
8 | | '<' PathType ('as' PathType)? '>' | 8 | | '<' PathType ('as' PathType)? '>' |
9 | 9 | ||
10 | GenericArgList = | 10 | GenericArgList = |
11 | '::'? '<' | 11 | '::'? '<' (GenericArg (',' GenericArg)* ','?)? '>' |
12 | TypeArg* | 12 | |
13 | LifetimeArg* | 13 | GenericArg = |
14 | AssocTypeArg* | 14 | TypeArg |
15 | ConstArg* | 15 | | AssocTypeArg |
16 | '>' | 16 | | LifetimeArg |
17 | | ConstArg | ||
17 | 18 | ||
18 | TypeArg = | 19 | TypeArg = |
19 | Type | 20 | Type |
@@ -27,7 +28,6 @@ LifetimeArg = | |||
27 | ConstArg = | 28 | ConstArg = |
28 | Literal | BlockExpr BlockExpr | 29 | Literal | BlockExpr BlockExpr |
29 | 30 | ||
30 | |||
31 | SourceFile = | 31 | SourceFile = |
32 | 'shebang'? | 32 | 'shebang'? |
33 | Attr* | 33 | Attr* |