aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/traits.rs
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/items/traits.rs
parentdc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (diff)
renames
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/traits.rs')
-rw-r--r--crates/libsyntax2/src/grammar/items/traits.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/grammar/items/traits.rs b/crates/libsyntax2/src/grammar/items/traits.rs
index daecaff5c..73ecd4bef 100644
--- a/crates/libsyntax2/src/grammar/items/traits.rs
+++ b/crates/libsyntax2/src/grammar/items/traits.rs
@@ -6,11 +6,11 @@ pub(super) fn trait_def(p: &mut Parser) {
6 assert!(p.at(TRAIT_KW)); 6 assert!(p.at(TRAIT_KW));
7 p.bump(); 7 p.bump();
8 name(p); 8 name(p);
9 type_params::type_param_list(p); 9 type_params::opt_type_param_list(p);
10 if p.at(COLON) { 10 if p.at(COLON) {
11 type_params::bounds(p); 11 type_params::bounds(p);
12 } 12 }
13 type_params::where_clause(p); 13 type_params::opt_where_clause(p);
14 p.expect(L_CURLY); 14 p.expect(L_CURLY);
15 // test trait_item_items 15 // test trait_item_items
16 // impl F { 16 // impl F {
@@ -31,7 +31,7 @@ pub(super) fn impl_item(p: &mut Parser) {
31 assert!(p.at(IMPL_KW)); 31 assert!(p.at(IMPL_KW));
32 p.bump(); 32 p.bump();
33 if choose_type_params_over_qpath(p) { 33 if choose_type_params_over_qpath(p) {
34 type_params::type_param_list(p); 34 type_params::opt_type_param_list(p);
35 } 35 }
36 36
37 // TODO: never type 37 // TODO: never type
@@ -44,7 +44,7 @@ pub(super) fn impl_item(p: &mut Parser) {
44 if p.eat(FOR_KW) { 44 if p.eat(FOR_KW) {
45 types::type_(p); 45 types::type_(p);
46 } 46 }
47 type_params::where_clause(p); 47 type_params::opt_where_clause(p);
48 p.expect(L_CURLY); 48 p.expect(L_CURLY);
49 49
50 // test impl_item_items 50 // test impl_item_items