diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 14:25:46 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 14:25:46 +0100 |
commit | eb2f8063444b11257111f4f8ade990ec810e0361 (patch) | |
tree | 999cef9fc647293699515f1e0ac59492e64c1116 /xtask | |
parent | 1142112c70b705f59b7d559d9d72cdc831865158 (diff) |
Rename TypeAliasDef -> TypeAlias
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/ast_src.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 12 |
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 = | |||
72 | RetType = | 72 | RetType = |
73 | '->' TypeRef | 73 | '->' TypeRef |
74 | 74 | ||
75 | TypeAlias = | ||
76 | Attr* Visibility? 'default'? 'type' Name TypeParamList? (':' TypeBoundList?)? WhereClause? | ||
77 | '=' TypeRef ';' | ||
78 | |||
75 | StructDef = | 79 | StructDef = |
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 | ||
127 | TypeAliasDef = | ||
128 | Attr* Visibility? 'default'? 'type' Name TypeParamList? WhereClause? (':' TypeBoundList?)? | ||
129 | '=' TypeRef ';' | ||
130 | |||
131 | ImplDef = | 131 | ImplDef = |
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 | ||
475 | AssocItem = | 475 | AssocItem = |
476 | Fn | 476 | Fn |
477 | | TypeAliasDef | 477 | | TypeAlias |
478 | | ConstDef | 478 | | ConstDef |
479 | | MacroCall | 479 | | MacroCall |
480 | 480 | ||