aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/items/structs.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-09 19:44:50 +0000
committerAleksey Kladov <[email protected]>2018-02-09 19:44:50 +0000
commit0ae26c344aa7477a18c2019cfa0062a9a745d70d (patch)
tree6a3659da778ee7c07f7a487694b09070c0451f45 /src/parser/grammar/items/structs.rs
parent351107d0b143e2c3497bd0f424f0d76bc51df0c0 (diff)
Drop ErrorBuilder nonsense
Diffstat (limited to 'src/parser/grammar/items/structs.rs')
-rw-r--r--src/parser/grammar/items/structs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/grammar/items/structs.rs b/src/parser/grammar/items/structs.rs
index 69d95c698..640b940e4 100644
--- a/src/parser/grammar/items/structs.rs
+++ b/src/parser/grammar/items/structs.rs
@@ -19,7 +19,7 @@ pub(super) fn struct_item(p: &mut Parser) {
19 L_CURLY => named_fields(p), 19 L_CURLY => named_fields(p),
20 _ => { 20 _ => {
21 //TODO: special case `(` error message 21 //TODO: special case `(` error message
22 p.error().message("expected `;` or `{`").emit(); 22 p.error("expected `;` or `{`");
23 return; 23 return;
24 } 24 }
25 } 25 }
@@ -34,7 +34,7 @@ pub(super) fn struct_item(p: &mut Parser) {
34 p.expect(SEMI); 34 p.expect(SEMI);
35 } 35 }
36 _ => { 36 _ => {
37 p.error().message("expected `;`, `{`, or `(`").emit(); 37 p.error("expected `;`, `{`, or `(`");
38 return; 38 return;
39 } 39 }
40 } 40 }