From 6cd2131cafd29ae17442efbcce652bd447576f27 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 11:58:41 +0200 Subject: Rename Rename --- xtask/src/ast_src.rs | 2 +- xtask/src/codegen/rust.ungram | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index d2a408e77..bcd92c3bc 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -194,7 +194,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { "PATH", "PATH_SEGMENT", "LITERAL", - "ALIAS", + "RENAME", "VISIBILITY", "WHERE_CLAUSE", "WHERE_PRED", diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 470ac8c8f..76c070402 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -396,16 +396,16 @@ UseItem = Attr* Visibility? 'use' UseTree ';' UseTree = - Path ('::' ('*' | UseTreeList)) Alias? + Path ('::' ('*' | UseTreeList)) Rename? UseTreeList = '{' UseTree* '}' -Alias = +Rename = 'as' Name ExternCrateItem = - Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Alias? ';' + Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Rename? ';' Path = (qualifier:Path '::')? segment:PathSegment -- cgit v1.2.3