diff options
author | Aleksey Kladov <[email protected]> | 2018-08-24 00:14:10 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-24 00:14:10 +0100 |
commit | a66c94af1bad3c2dcfd8dd4c07494d0cf6cc8b1b (patch) | |
tree | ee437a908df36ead848cb83d9224b22bdcecce5b /crates/libsyntax2/src/grammar/items/mod.rs | |
parent | dc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (diff) |
renames
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index d460612b4..18b681ee2 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs | |||
@@ -225,7 +225,7 @@ fn function(p: &mut Parser, flavor: ItemFlavor) { | |||
225 | name(p); | 225 | name(p); |
226 | // test function_type_params | 226 | // test function_type_params |
227 | // fn foo<T: Clone + Copy>(){} | 227 | // fn foo<T: Clone + Copy>(){} |
228 | type_params::type_param_list(p); | 228 | type_params::opt_type_param_list(p); |
229 | 229 | ||
230 | if p.at(L_PAREN) { | 230 | if p.at(L_PAREN) { |
231 | match flavor { | 231 | match flavor { |
@@ -240,11 +240,11 @@ fn function(p: &mut Parser, flavor: ItemFlavor) { | |||
240 | // test function_ret_type | 240 | // test function_ret_type |
241 | // fn foo() {} | 241 | // fn foo() {} |
242 | // fn bar() -> () {} | 242 | // fn bar() -> () {} |
243 | fn_ret_type(p); | 243 | opt_fn_ret_type(p); |
244 | 244 | ||
245 | // test function_where_clause | 245 | // test function_where_clause |
246 | // fn foo<T>() where T: Copy {} | 246 | // fn foo<T>() where T: Copy {} |
247 | type_params::where_clause(p); | 247 | type_params::opt_where_clause(p); |
248 | 248 | ||
249 | // test fn_decl | 249 | // test fn_decl |
250 | // trait T { fn foo(); } | 250 | // trait T { fn foo(); } |
@@ -263,7 +263,7 @@ fn type_def(p: &mut Parser) { | |||
263 | 263 | ||
264 | // test type_item_type_params | 264 | // test type_item_type_params |
265 | // type Result<T> = (); | 265 | // type Result<T> = (); |
266 | type_params::type_param_list(p); | 266 | type_params::opt_type_param_list(p); |
267 | 267 | ||
268 | if p.at(COLON) { | 268 | if p.at(COLON) { |
269 | type_params::bounds(p); | 269 | type_params::bounds(p); |
@@ -271,7 +271,7 @@ fn type_def(p: &mut Parser) { | |||
271 | 271 | ||
272 | // test type_item_where_clause | 272 | // test type_item_where_clause |
273 | // type Foo where Foo: Copy = (); | 273 | // type Foo where Foo: Copy = (); |
274 | type_params::where_clause(p); | 274 | type_params::opt_where_clause(p); |
275 | 275 | ||
276 | if p.eat(EQ) { | 276 | if p.eat(EQ) { |
277 | types::type_(p); | 277 | types::type_(p); |