diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/paths.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/paths.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/paths.rs b/crates/libsyntax2/src/grammar/paths.rs index c277e2a6b..aa5ecf4b8 100644 --- a/crates/libsyntax2/src/grammar/paths.rs +++ b/crates/libsyntax2/src/grammar/paths.rs | |||
@@ -62,7 +62,7 @@ fn path_segment(p: &mut Parser, mode: Mode, first: bool) { | |||
62 | } | 62 | } |
63 | SELF_KW | SUPER_KW => p.bump(), | 63 | SELF_KW | SUPER_KW => p.bump(), |
64 | _ => { | 64 | _ => { |
65 | p.error("expected identifier"); | 65 | p.err_and_bump("expected identifier"); |
66 | } | 66 | } |
67 | }; | 67 | }; |
68 | segment.complete(p, PATH_SEGMENT); | 68 | segment.complete(p, PATH_SEGMENT); |