From e2b378ef7e0ed82b0f0c874f98032a368fd5f30f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 10 Sep 2019 00:59:29 +0300 Subject: rename bump -> bump_any --- crates/ra_parser/src/grammar/type_args.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_parser/src/grammar/type_args.rs') 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) { match (colon_colon_required, p.nth(0), p.nth(1)) { (_, T![::], T![<]) => { m = p.start(); - p.bump(); - p.bump(); + p.bump_any(); + p.bump_any(); } (false, T![<], T![=]) => return, (false, T![<], _) => { m = p.start(); - p.bump(); + p.bump_any(); } _ => return, }; @@ -32,7 +32,7 @@ fn type_arg(p: &mut Parser) { let m = p.start(); match p.current() { LIFETIME => { - p.bump(); + p.bump_any(); m.complete(p, LIFETIME_ARG); } // test associated_type_bounds @@ -44,7 +44,7 @@ fn type_arg(p: &mut Parser) { } IDENT if p.nth(1) == T![=] => { name_ref(p); - p.bump(); + p.bump_any(); types::type_(p); m.complete(p, ASSOC_TYPE_ARG); } -- cgit v1.2.3