diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 11:10:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 11:10:50 +0000 |
commit | 8a735b667295f8390394b2536337698cb9a384ce (patch) | |
tree | 6947e1e61aac549d152e4066f73b3f687a4017d2 /src/parser | |
parent | ca6e93f091bc6f2e9dc26e842fc87d614089cf9d (diff) |
G: use names in enums
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/grammar/items/structs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/grammar/items/structs.rs b/src/parser/grammar/items/structs.rs index 3b1f8a38c..3c122a56f 100644 --- a/src/parser/grammar/items/structs.rs +++ b/src/parser/grammar/items/structs.rs | |||
@@ -41,7 +41,7 @@ pub(super) fn struct_item(p: &mut Parser) { | |||
41 | pub(super) fn enum_item(p: &mut Parser) { | 41 | pub(super) fn enum_item(p: &mut Parser) { |
42 | assert!(p.at(ENUM_KW)); | 42 | assert!(p.at(ENUM_KW)); |
43 | p.bump(); | 43 | p.bump(); |
44 | p.expect(IDENT); | 44 | name(p); |
45 | type_params::list(p); | 45 | type_params::list(p); |
46 | type_params::where_clause(p); | 46 | type_params::where_clause(p); |
47 | if p.expect(L_CURLY) { | 47 | if p.expect(L_CURLY) { |