aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/params.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-09-09 22:59:29 +0100
committerAleksey Kladov <[email protected]>2019-09-09 23:00:38 +0100
commite2b378ef7e0ed82b0f0c874f98032a368fd5f30f (patch)
tree8d3d27474939f1d66fc622f827182206b6b7f975 /crates/ra_parser/src/grammar/params.rs
parentc3d96f64ef1b2a5ded9cf5950f8e0f5798de4e1b (diff)
rename bump -> bump_any
Diffstat (limited to 'crates/ra_parser/src/grammar/params.rs')
-rw-r--r--crates/ra_parser/src/grammar/params.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs
index 0b09f1874..56e457325 100644
--- a/crates/ra_parser/src/grammar/params.rs
+++ b/crates/ra_parser/src/grammar/params.rs
@@ -39,7 +39,7 @@ fn list_(p: &mut Parser, flavor: Flavor) {
39 let (bra, ket) = if flavor.type_required() { (T!['('], T![')']) } else { (T![|], T![|]) }; 39 let (bra, ket) = if flavor.type_required() { (T!['('], T![')']) } else { (T![|], T![|]) };
40 assert!(p.at(bra)); 40 assert!(p.at(bra));
41 let m = p.start(); 41 let m = p.start();
42 p.bump(); 42 p.bump_any();
43 if flavor.type_required() { 43 if flavor.type_required() {
44 // test self_param_outer_attr 44 // test self_param_outer_attr
45 // fn f(#[must_use] self) {} 45 // fn f(#[must_use] self) {}
@@ -146,7 +146,7 @@ fn opt_self_param(p: &mut Parser) {
146 }; 146 };
147 m = p.start(); 147 m = p.start();
148 for _ in 0..n_toks { 148 for _ in 0..n_toks {
149 p.bump(); 149 p.bump_any();
150 } 150 }
151 } 151 }
152 m.complete(p, SELF_PARAM); 152 m.complete(p, SELF_PARAM);