From ca6e93f091bc6f2e9dc26e842fc87d614089cf9d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:10:02 +0300 Subject: G: use names in structs --- src/parser/grammar/items/structs.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/parser') diff --git a/src/parser/grammar/items/structs.rs b/src/parser/grammar/items/structs.rs index 640b940e4..3b1f8a38c 100644 --- a/src/parser/grammar/items/structs.rs +++ b/src/parser/grammar/items/structs.rs @@ -4,9 +4,7 @@ pub(super) fn struct_item(p: &mut Parser) { assert!(p.at(STRUCT_KW)); p.bump(); - if !p.expect(IDENT) { - return; - } + name(p); type_params::list(p); match p.current() { WHERE_KW => { -- cgit v1.2.3