aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/ast_src.rs2
-rw-r--r--xtask/src/codegen/rust.ungram12
2 files changed, 7 insertions, 7 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 40693ed17..e66e96d64 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -105,7 +105,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
105 "CONST_DEF", 105 "CONST_DEF",
106 "TRAIT_DEF", 106 "TRAIT_DEF",
107 "IMPL_DEF", 107 "IMPL_DEF",
108 "TYPE_ALIAS_DEF", 108 "TYPE_ALIAS",
109 "MACRO_CALL", 109 "MACRO_CALL",
110 "TOKEN_TREE", 110 "TOKEN_TREE",
111 "MACRO_DEF", 111 "MACRO_DEF",
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 98968dece..760a8dd95 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -15,7 +15,7 @@ Item =
15| StaticDef 15| StaticDef
16| StructDef 16| StructDef
17| TraitDef 17| TraitDef
18| TypeAliasDef 18| TypeAlias
19| UnionDef 19| UnionDef
20| Use 20| Use
21 21
@@ -72,6 +72,10 @@ Param =
72RetType = 72RetType =
73 '->' TypeRef 73 '->' TypeRef
74 74
75TypeAlias =
76 Attr* Visibility? 'default'? 'type' Name TypeParamList? (':' TypeBoundList?)? WhereClause?
77 '=' TypeRef ';'
78
75StructDef = 79StructDef =
76 Attr* Visibility? 'struct' Name TypeParamList? ( 80 Attr* Visibility? 'struct' Name TypeParamList? (
77 WhereClause? (RecordFieldDefList | ';') 81 WhereClause? (RecordFieldDefList | ';')
@@ -124,10 +128,6 @@ StaticDef =
124 Attr* Visibility? 'static'? 'mut'? 'static' Name ':' ascribed_type:TypeRef 128 Attr* Visibility? 'static'? 'mut'? 'static' Name ':' ascribed_type:TypeRef
125 '=' body:Expr ';' 129 '=' body:Expr ';'
126 130
127TypeAliasDef =
128 Attr* Visibility? 'default'? 'type' Name TypeParamList? WhereClause? (':' TypeBoundList?)?
129 '=' TypeRef ';'
130
131ImplDef = 131ImplDef =
132 Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' TypeParamList? '!'? 'for' 132 Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' TypeParamList? '!'? 'for'
133 WhereClause? 133 WhereClause?
@@ -474,7 +474,7 @@ TypeRef =
474 474
475AssocItem = 475AssocItem =
476 Fn 476 Fn
477| TypeAliasDef 477| TypeAlias
478| ConstDef 478| ConstDef
479| MacroCall 479| MacroCall
480 480