aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/items
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-10 11:10:02 +0000
committerAleksey Kladov <[email protected]>2018-02-10 11:10:02 +0000
commitca6e93f091bc6f2e9dc26e842fc87d614089cf9d (patch)
tree1b7301408f414eaf731ee41c80b200b0d74991e2 /src/parser/grammar/items
parentf746fb6a93a4f0493fc8f5602372c267befe4e48 (diff)
G: use names in structs
Diffstat (limited to 'src/parser/grammar/items')
-rw-r--r--src/parser/grammar/items/structs.rs4
1 files changed, 1 insertions, 3 deletions
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) {
4 assert!(p.at(STRUCT_KW)); 4 assert!(p.at(STRUCT_KW));
5 p.bump(); 5 p.bump();
6 6
7 if !p.expect(IDENT) { 7 name(p);
8 return;
9 }
10 type_params::list(p); 8 type_params::list(p);
11 match p.current() { 9 match p.current() {
12 WHERE_KW => { 10 WHERE_KW => {