diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-09 23:06:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-09 23:06:25 +0100 |
commit | e2ebb467bdf3ebb7d29260adb95c56594c6db282 (patch) | |
tree | e0c25226d8a13b3ff2a13d1100315e8455ea98bd /crates/ra_parser/src/grammar/paths.rs | |
parent | c3d96f64ef1b2a5ded9cf5950f8e0f5798de4e1b (diff) | |
parent | d8aa9a1d81529cdc39e8353f2915c3c4d04ac263 (diff) |
Merge #1803
1803: introduce bump as a better-checked alternative to bump_any r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 | } |