aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/params.rs')
-rw-r--r--crates/libsyntax2/src/grammar/params.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/params.rs b/crates/libsyntax2/src/grammar/params.rs
index 47567ec8a..5b1322b3a 100644
--- a/crates/libsyntax2/src/grammar/params.rs
+++ b/crates/libsyntax2/src/grammar/params.rs
@@ -45,7 +45,7 @@ fn list_(p: &mut Parser, flavor: Flavor) {
45 let m = p.start(); 45 let m = p.start();
46 p.bump(); 46 p.bump();
47 if flavor.type_required() { 47 if flavor.type_required() {
48 self_param(p); 48 opt_self_param(p);
49 } 49 }
50 while !p.at(EOF) && !p.at(ket) { 50 while !p.at(EOF) && !p.at(ket) {
51 value_parameter(p, flavor); 51 value_parameter(p, flavor);
@@ -94,7 +94,7 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) {
94// fn d(&'a mut self, x: i32) {} 94// fn d(&'a mut self, x: i32) {}
95// fn e(mut self) {} 95// fn e(mut self) {}
96// } 96// }
97fn self_param(p: &mut Parser) { 97fn opt_self_param(p: &mut Parser) {
98 let m; 98 let m;
99 if p.at(SELF_KW) || p.at(MUT_KW) && p.nth(1) == SELF_KW { 99 if p.at(SELF_KW) || p.at(MUT_KW) && p.nth(1) == SELF_KW {
100 m = p.start(); 100 m = p.start();