diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-09 19:56:18 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-09 19:56:18 +0000 |
commit | 419b9b7e5efd895249934551cb2588b27a956f58 (patch) | |
tree | 4d53f6d5e34a4244f0aaeb2039454e3594856324 /src/parser/grammar/paths.rs | |
parent | 550b17d7cf321c2aebff75d00b1654b55beca53c (diff) | |
parent | ac932df22a993f0b287e60aa42055405ef94a6ae (diff) |
Merge #44
44: Drop ErrorBuilder nonsense r=matklad a=matklad
Diffstat (limited to 'src/parser/grammar/paths.rs')
-rw-r--r-- | src/parser/grammar/paths.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/grammar/paths.rs b/src/parser/grammar/paths.rs index 6efac2610..a7fc90774 100644 --- a/src/parser/grammar/paths.rs +++ b/src/parser/grammar/paths.rs | |||
@@ -43,7 +43,9 @@ fn path_segment(p: &mut Parser, first: bool) { | |||
43 | } | 43 | } |
44 | match p.current() { | 44 | match p.current() { |
45 | IDENT | SELF_KW | SUPER_KW => p.bump(), | 45 | IDENT | SELF_KW | SUPER_KW => p.bump(), |
46 | _ => p.error().message("expected identifier").emit(), | 46 | _ => { |
47 | p.error("expected identifier"); | ||
48 | } | ||
47 | }; | 49 | }; |
48 | segment.complete(p, PATH_SEGMENT); | 50 | segment.complete(p, PATH_SEGMENT); |
49 | } | 51 | } |