diff options
Diffstat (limited to 'crates/ra_parser/src/grammar/type_args.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/type_args.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_parser/src/grammar/type_args.rs b/crates/ra_parser/src/grammar/type_args.rs index 3db08b280..e100af531 100644 --- a/crates/ra_parser/src/grammar/type_args.rs +++ b/crates/ra_parser/src/grammar/type_args.rs | |||
@@ -5,13 +5,13 @@ pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { | |||
5 | match (colon_colon_required, p.nth(0), p.nth(1)) { | 5 | match (colon_colon_required, p.nth(0), p.nth(1)) { |
6 | (_, T![::], T![<]) => { | 6 | (_, T![::], T![<]) => { |
7 | m = p.start(); | 7 | m = p.start(); |
8 | p.bump(); | 8 | p.bump_any(); |
9 | p.bump(); | 9 | p.bump_any(); |
10 | } | 10 | } |
11 | (false, T![<], T![=]) => return, | 11 | (false, T![<], T![=]) => return, |
12 | (false, T![<], _) => { | 12 | (false, T![<], _) => { |
13 | m = p.start(); | 13 | m = p.start(); |
14 | p.bump(); | 14 | p.bump_any(); |
15 | } | 15 | } |
16 | _ => return, | 16 | _ => return, |
17 | }; | 17 | }; |
@@ -32,7 +32,7 @@ fn type_arg(p: &mut Parser) { | |||
32 | let m = p.start(); | 32 | let m = p.start(); |
33 | match p.current() { | 33 | match p.current() { |
34 | LIFETIME => { | 34 | LIFETIME => { |
35 | p.bump(); | 35 | p.bump_any(); |
36 | m.complete(p, LIFETIME_ARG); | 36 | m.complete(p, LIFETIME_ARG); |
37 | } | 37 | } |
38 | // test associated_type_bounds | 38 | // test associated_type_bounds |
@@ -44,7 +44,7 @@ fn type_arg(p: &mut Parser) { | |||
44 | } | 44 | } |
45 | IDENT if p.nth(1) == T![=] => { | 45 | IDENT if p.nth(1) == T![=] => { |
46 | name_ref(p); | 46 | name_ref(p); |
47 | p.bump(); | 47 | p.bump_any(); |
48 | types::type_(p); | 48 | types::type_(p); |
49 | m.complete(p, ASSOC_TYPE_ARG); | 49 | m.complete(p, ASSOC_TYPE_ARG); |
50 | } | 50 | } |