diff options
author | Aleksey Kladov <[email protected]> | 2018-02-09 19:44:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-09 19:44:50 +0000 |
commit | 0ae26c344aa7477a18c2019cfa0062a9a745d70d (patch) | |
tree | 6a3659da778ee7c07f7a487694b09070c0451f45 /src/parser/grammar/attributes.rs | |
parent | 351107d0b143e2c3497bd0f424f0d76bc51df0c0 (diff) |
Drop ErrorBuilder nonsense
Diffstat (limited to 'src/parser/grammar/attributes.rs')
-rw-r--r-- | src/parser/grammar/attributes.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser/grammar/attributes.rs b/src/parser/grammar/attributes.rs index 8bf04afce..92dfb99ef 100644 --- a/src/parser/grammar/attributes.rs +++ b/src/parser/grammar/attributes.rs | |||
@@ -37,7 +37,7 @@ fn meta_item(p: &mut Parser) { | |||
37 | EQ => { | 37 | EQ => { |
38 | p.bump(); | 38 | p.bump(); |
39 | if !expressions::literal(p) { | 39 | if !expressions::literal(p) { |
40 | p.error().message("expected literal").emit(); | 40 | p.error("expected literal"); |
41 | } | 41 | } |
42 | } | 42 | } |
43 | L_PAREN => meta_item_arg_list(p), | 43 | L_PAREN => meta_item_arg_list(p), |
@@ -45,7 +45,7 @@ fn meta_item(p: &mut Parser) { | |||
45 | } | 45 | } |
46 | meta_item.complete(p, META_ITEM); | 46 | meta_item.complete(p, META_ITEM); |
47 | } else { | 47 | } else { |
48 | p.error().message("expected attribute value").emit() | 48 | p.error("expected attribute value"); |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
@@ -60,12 +60,12 @@ fn meta_item_arg_list(p: &mut Parser) { | |||
60 | let message = "expected attribute"; | 60 | let message = "expected attribute"; |
61 | 61 | ||
62 | if items::ITEM_FIRST.contains(c) { | 62 | if items::ITEM_FIRST.contains(c) { |
63 | p.error().message(message).emit(); | 63 | p.error(message); |
64 | return; | 64 | return; |
65 | } | 65 | } |
66 | 66 | ||
67 | let err = p.start(); | 67 | let err = p.start(); |
68 | p.error().message(message).emit(); | 68 | p.error(message); |
69 | p.bump(); | 69 | p.bump(); |
70 | err.complete(p, ERROR); | 70 | err.complete(p, ERROR); |
71 | continue; | 71 | continue; |