Rename TypeAliasDef -> TypeAlias

This commit is contained in:
Aleksey Kladov 2020-07-30 15:25:46 +02:00
parent 1142112c70
commit eb2f806344
65 changed files with 146 additions and 155 deletions

View file

@ -15,7 +15,7 @@ Item =
| StaticDef
| StructDef
| TraitDef
| TypeAliasDef
| TypeAlias
| UnionDef
| Use
@ -72,6 +72,10 @@ Param =
RetType =
'->' TypeRef
TypeAlias =
Attr* Visibility? 'default'? 'type' Name TypeParamList? (':' TypeBoundList?)? WhereClause?
'=' TypeRef ';'
StructDef =
Attr* Visibility? 'struct' Name TypeParamList? (
WhereClause? (RecordFieldDefList | ';')
@ -124,10 +128,6 @@ StaticDef =
Attr* Visibility? 'static'? 'mut'? 'static' Name ':' ascribed_type:TypeRef
'=' body:Expr ';'
TypeAliasDef =
Attr* Visibility? 'default'? 'type' Name TypeParamList? WhereClause? (':' TypeBoundList?)?
'=' TypeRef ';'
ImplDef =
Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' TypeParamList? '!'? 'for'
WhereClause?
@ -474,7 +474,7 @@ TypeRef =
AssocItem =
Fn
| TypeAliasDef
| TypeAlias
| ConstDef
| MacroCall