diff options
Diffstat (limited to 'crates/ra_parser/src/grammar/paths.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/paths.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/paths.rs b/crates/ra_parser/src/grammar/paths.rs index 28c35a67d..345c93f55 100644 --- a/crates/ra_parser/src/grammar/paths.rs +++ b/crates/ra_parser/src/grammar/paths.rs | |||
@@ -44,7 +44,7 @@ fn path(p: &mut Parser, mode: Mode) { | |||
44 | }; | 44 | }; |
45 | if p.at(T![::]) && !use_tree { | 45 | if p.at(T![::]) && !use_tree { |
46 | let path = qual.precede(p); | 46 | let path = qual.precede(p); |
47 | p.bump(); | 47 | p.bump_any(); |
48 | path_segment(p, mode, false); | 48 | path_segment(p, mode, false); |
49 | let path = path.complete(p, PATH); | 49 | let path = path.complete(p, PATH); |
50 | qual = path; | 50 | qual = path; |
@@ -80,7 +80,7 @@ fn path_segment(p: &mut Parser, mode: Mode, first: bool) { | |||
80 | } | 80 | } |
81 | // test crate_path | 81 | // test crate_path |
82 | // use crate::foo; | 82 | // use crate::foo; |
83 | T![self] | T![super] | T![crate] => p.bump(), | 83 | T![self] | T![super] | T![crate] => p.bump_any(), |
84 | _ => { | 84 | _ => { |
85 | p.err_recover("expected identifier", items::ITEM_RECOVERY_SET); | 85 | p.err_recover("expected identifier", items::ITEM_RECOVERY_SET); |
86 | } | 86 | } |