aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 17:41:37 +0100
committerAleksey Kladov <[email protected]>2020-07-31 17:41:37 +0100
commit040b4c800d5279e77a6825fc90cb2921d26c7f95 (patch)
tree17de1c83aa3d392902777c9eebbbb17f14b05e12 /xtask/src/codegen
parentd21b5db891d605c7c10118daca1f06c09c14b07e (diff)
Fix GenericArgs grammar
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/rust.ungram14
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
10GenericArgList = 10GenericArgList =
11 '::'? '<' 11 '::'? '<' (GenericArg (',' GenericArg)* ','?)? '>'
12 TypeArg* 12
13 LifetimeArg* 13GenericArg =
14 AssocTypeArg* 14 TypeArg
15 ConstArg* 15| AssocTypeArg
16 '>' 16| LifetimeArg
17| ConstArg
17 18
18TypeArg = 19TypeArg =
19 Type 20 Type
@@ -27,7 +28,6 @@ LifetimeArg =
27ConstArg = 28ConstArg =
28 Literal | BlockExpr BlockExpr 29 Literal | BlockExpr BlockExpr
29 30
30
31SourceFile = 31SourceFile =
32 'shebang'? 32 'shebang'?
33 Attr* 33 Attr*