From c83467796b6c7365ea4f41900d74444384a9e618 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 18:17:28 +0200 Subject: Finalize Trait grammar --- xtask/src/ast_src.rs | 2 +- xtask/src/codegen/rust.ungram | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 56e3f4b0a..ea8bf50ed 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -103,7 +103,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { "USE", "STATIC", "CONST", - "TRAIT_DEF", + "TRAIT", "IMPL_DEF", "TYPE_ALIAS", "MACRO_CALL", diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 4f7f6403e..b30658397 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -14,7 +14,7 @@ Item = | Module | Static | Struct -| TraitDef +| Trait | TypeAlias | Union | Use @@ -123,7 +123,7 @@ Static = Attr* Visibility? 'static'? 'mut'? Name ':' ascribed_type:TypeRef '=' body:Expr ';' -TraitDef = +Trait = Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList (':' TypeBoundList?)? WhereClause AssocItemList -- cgit v1.2.3