aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/expressions
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions')
-rw-r--r--crates/libsyntax2/src/grammar/expressions/atom.rs2
-rw-r--r--crates/libsyntax2/src/grammar/expressions/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/atom.rs b/crates/libsyntax2/src/grammar/expressions/atom.rs
index 4f03862b1..57a887f84 100644
--- a/crates/libsyntax2/src/grammar/expressions/atom.rs
+++ b/crates/libsyntax2/src/grammar/expressions/atom.rs
@@ -130,7 +130,7 @@ fn lambda_expr(p: &mut Parser) -> CompletedMarker {
130 let m = p.start(); 130 let m = p.start();
131 p.eat(MOVE_KW); 131 p.eat(MOVE_KW);
132 params::param_list_opt_types(p); 132 params::param_list_opt_types(p);
133 if fn_ret_type(p) { 133 if opt_fn_ret_type(p) {
134 block(p); 134 block(p);
135 } else { 135 } else {
136 expr(p); 136 expr(p);
diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/libsyntax2/src/grammar/expressions/mod.rs
index 3da539699..9ce0c1f8f 100644
--- a/crates/libsyntax2/src/grammar/expressions/mod.rs
+++ b/crates/libsyntax2/src/grammar/expressions/mod.rs
@@ -265,7 +265,7 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
265 let m = lhs.precede(p); 265 let m = lhs.precede(p);
266 p.bump(); 266 p.bump();
267 name_ref(p); 267 name_ref(p);
268 type_args::type_arg_list(p, true); 268 type_args::opt_type_arg_list(p, true);
269 if p.at(L_PAREN) { 269 if p.at(L_PAREN) {
270 arg_list(p); 270 arg_list(p);
271 } 271 }