aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/types.rs')
-rw-r--r--crates/libsyntax2/src/grammar/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/types.rs b/crates/libsyntax2/src/grammar/types.rs
index f58b545c7..2088a38e3 100644
--- a/crates/libsyntax2/src/grammar/types.rs
+++ b/crates/libsyntax2/src/grammar/types.rs
@@ -174,7 +174,7 @@ fn fn_pointer_type(p: &mut Parser) {
174 } 174 }
175 // test fn_pointer_type_with_ret 175 // test fn_pointer_type_with_ret
176 // type F = fn() -> (); 176 // type F = fn() -> ();
177 fn_ret_type(p); 177 opt_fn_ret_type(p);
178 m.complete(p, FN_POINTER_TYPE); 178 m.complete(p, FN_POINTER_TYPE);
179} 179}
180 180
@@ -184,7 +184,7 @@ fn for_type(p: &mut Parser) {
184 assert!(p.at(FOR_KW)); 184 assert!(p.at(FOR_KW));
185 let m = p.start(); 185 let m = p.start();
186 p.bump(); 186 p.bump();
187 type_params::type_param_list(p); 187 type_params::opt_type_param_list(p);
188 type_(p); 188 type_(p);
189 m.complete(p, FOR_TYPE); 189 m.complete(p, FOR_TYPE);
190} 190}