aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-23 23:19:38 +0100
committerAleksey Kladov <[email protected]>2018-08-23 23:19:38 +0100
commitdc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (patch)
tree618354b471933003577ff2a5616c27bd272f62f3 /crates/libsyntax2/src/grammar/items
parentcf7d4a2a243cac1975b9b28d47ed91a6bd01b34f (diff)
better self-types
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();