diff options
author | Aleksey Kladov <[email protected]> | 2018-08-23 23:19:38 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-23 23:19:38 +0100 |
commit | dc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (patch) | |
tree | 618354b471933003577ff2a5616c27bd272f62f3 /crates/libsyntax2/src/grammar/mod.rs | |
parent | cf7d4a2a243cac1975b9b28d47ed91a6bd01b34f (diff) |
better self-types
Diffstat (limited to 'crates/libsyntax2/src/grammar/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs index bbdc4f807..d09a9dc9c 100644 --- a/crates/libsyntax2/src/grammar/mod.rs +++ b/crates/libsyntax2/src/grammar/mod.rs | |||
@@ -92,14 +92,14 @@ fn opt_visibility(p: &mut Parser) { | |||
92 | _ => (), | 92 | _ => (), |
93 | } | 93 | } |
94 | } | 94 | } |
95 | fn alias(p: &mut Parser) -> bool { | 95 | |
96 | fn opt_alias(p: &mut Parser) { | ||
96 | if p.at(AS_KW) { | 97 | if p.at(AS_KW) { |
97 | let alias = p.start(); | 98 | let m = p.start(); |
98 | p.bump(); | 99 | p.bump(); |
99 | name(p); | 100 | name(p); |
100 | alias.complete(p, ALIAS); | 101 | m.complete(p, ALIAS); |
101 | } | 102 | } |
102 | true //FIXME: return false if three are errors | ||
103 | } | 103 | } |
104 | 104 | ||
105 | fn abi(p: &mut Parser) { | 105 | fn abi(p: &mut Parser) { |