Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/rust.ungram')
-rw-r--r--crates/syntax/rust.ungram8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 6d8a360d71..d73d60c51f 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -154,7 +154,6 @@ Item =
| Static
| Struct
| Trait
-| TraitAlias
| TypeAlias
| Union
| Use
@@ -306,11 +305,8 @@ Trait =
Attr* Visibility?
'unsafe'? 'auto'?
'trait' Name GenericParamList?
- (':' TypeBoundList?)? WhereClause? AssocItemList
-
-TraitAlias =
- Attr* Visibility?
- 'trait' Name GenericParamList? '=' TypeBoundList? WhereClause? ';'
+ (((':' TypeBoundList?)? WhereClause? AssocItemList) |
+ ('=' TypeBoundList? WhereClause? ';'))
AssocItemList =
'{' Attr* AssocItem* '}'