aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/structs.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/structs.rs
parentdc40f1298a8d4dcb7a26d5af38c4fb7ef3d6c5df (diff)
renames
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/structs.rs')
-rw-r--r--crates/libsyntax2/src/grammar/items/structs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/grammar/items/structs.rs b/crates/libsyntax2/src/grammar/items/structs.rs
index b3ed94fe3..cde9d0ae6 100644
--- a/crates/libsyntax2/src/grammar/items/structs.rs
+++ b/crates/libsyntax2/src/grammar/items/structs.rs
@@ -5,10 +5,10 @@ pub(super) fn struct_def(p: &mut Parser) {
5 p.bump(); 5 p.bump();
6 6
7 name(p); 7 name(p);
8 type_params::type_param_list(p); 8 type_params::opt_type_param_list(p);
9 match p.current() { 9 match p.current() {
10 WHERE_KW => { 10 WHERE_KW => {
11 type_params::where_clause(p); 11 type_params::opt_where_clause(p);
12 match p.current() { 12 match p.current() {
13 SEMI => { 13 SEMI => {
14 p.bump(); 14 p.bump();
@@ -42,8 +42,8 @@ pub(super) fn enum_def(p: &mut Parser) {
42 assert!(p.at(ENUM_KW)); 42 assert!(p.at(ENUM_KW));
43 p.bump(); 43 p.bump();
44 name(p); 44 name(p);
45 type_params::type_param_list(p); 45 type_params::opt_type_param_list(p);
46 type_params::where_clause(p); 46 type_params::opt_where_clause(p);
47 if p.expect(L_CURLY) { 47 if p.expect(L_CURLY) {
48 while !p.at(EOF) && !p.at(R_CURLY) { 48 while !p.at(EOF) && !p.at(R_CURLY) {
49 let var = p.start(); 49 let var = p.start();