aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/expressions
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-24 00:14:10 +0100
committerAleksey Kladov <[email protected]>2018-08-24 00:14:10 +0100
commita66c94af1bad3c2dcfd8dd4c07494d0cf6cc8b1b (patch)
treeee437a908df36ead848cb83d9224b22bdcecce5b /crates/libsyntax2/src/grammar/expressions
parentdc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (diff)
renames
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 }