diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 11:34:32 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 11:34:32 +0000 |
commit | 4212d28727fca0de8c3f5d4504025c3028425386 (patch) | |
tree | 044832f0c569f54ca92bdf618c6cc4b3b68940e9 /src/parser/event_parser/grammar/paths.rs | |
parent | 7a6fa6504c5458dcc32e24327ba0ec597222fc63 (diff) | |
parent | 2141888782a74de4a655fee585c99163a3e75e5c (diff) |
Merge #25
25: Drop curly_block r=matklad a=matklad
closes #13
Diffstat (limited to 'src/parser/event_parser/grammar/paths.rs')
-rw-r--r-- | src/parser/event_parser/grammar/paths.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/event_parser/grammar/paths.rs b/src/parser/event_parser/grammar/paths.rs index 4e028073a..6c8a89f6c 100644 --- a/src/parser/event_parser/grammar/paths.rs +++ b/src/parser/event_parser/grammar/paths.rs | |||
@@ -12,7 +12,7 @@ pub(crate) fn use_path(p: &mut Parser) { | |||
12 | path_segment(p, true); | 12 | path_segment(p, true); |
13 | let mut qual = path.complete(p, PATH); | 13 | let mut qual = path.complete(p, PATH); |
14 | loop { | 14 | loop { |
15 | if p.at(COLONCOLON) && !items::is_use_tree_start(p.raw_lookahead(1)) { | 15 | if p.at(COLONCOLON) && !items::is_use_tree_start(p.nth(1)) { |
16 | let path = qual.precede(p); | 16 | let path = qual.precede(p); |
17 | p.bump(); | 17 | p.bump(); |
18 | path_segment(p, false); | 18 | path_segment(p, false); |