From dc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Aug 2018 01:19:38 +0300 Subject: better self-types --- crates/libsyntax2/src/grammar/items/mod.rs | 2 +- crates/libsyntax2/src/grammar/items/use_item.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/libsyntax2/src/grammar/items') diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index c74266133..d460612b4 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs @@ -208,7 +208,7 @@ fn extern_crate_item(p: &mut Parser) { assert!(p.at(CRATE_KW)); p.bump(); name(p); - alias(p); + opt_alias(p); p.expect(SEMI); } diff --git a/crates/libsyntax2/src/grammar/items/use_item.rs b/crates/libsyntax2/src/grammar/items/use_item.rs index a3f7f0da8..3da40a629 100644 --- a/crates/libsyntax2/src/grammar/items/use_item.rs +++ b/crates/libsyntax2/src/grammar/items/use_item.rs @@ -26,7 +26,7 @@ fn use_tree(p: &mut Parser) { paths::use_path(p); match p.current() { AS_KW => { - alias(p); + opt_alias(p); } COLONCOLON => { p.bump(); -- cgit v1.2.3