aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/items')
-rw-r--r--crates/libsyntax2/src/grammar/items/mod.rs2
-rw-r--r--crates/libsyntax2/src/grammar/items/use_item.rs2
2 files changed, 2 insertions, 2 deletions
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) {
208 assert!(p.at(CRATE_KW)); 208 assert!(p.at(CRATE_KW));
209 p.bump(); 209 p.bump();
210 name(p); 210 name(p);
211 alias(p); 211 opt_alias(p);
212 p.expect(SEMI); 212 p.expect(SEMI);
213} 213}
214 214
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) {
26 paths::use_path(p); 26 paths::use_path(p);
27 match p.current() { 27 match p.current() {
28 AS_KW => { 28 AS_KW => {
29 alias(p); 29 opt_alias(p);
30 } 30 }
31 COLONCOLON => { 31 COLONCOLON => {
32 p.bump(); 32 p.bump();