aboutsummaryrefslogtreecommitdiff
path: root/src/boot/fe/item.ml
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-04-19 10:15:26 +0200
committerMarijn Haverbeke <[email protected]>2011-04-19 16:57:13 +0200
commit9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4 (patch)
tree688d5ac52ff6cdcdeb364dfe4b418370a9aee5ab /src/boot/fe/item.ml
parentPrecision overrides 0-padding in #fmt (diff)
downloadrust-9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4.tar.xz
rust-9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4.zip
Add log_err to rustboot
Diffstat (limited to 'src/boot/fe/item.ml')
-rw-r--r--src/boot/fe/item.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/boot/fe/item.ml b/src/boot/fe/item.ml
index fce89373..5f8a0d30 100644
--- a/src/boot/fe/item.ml
+++ b/src/boot/fe/item.ml
@@ -186,6 +186,11 @@ and parse_stmts_including_none (ps:pstate) : Ast.stmt array =
let (stmts, atom) = ctxt "stmts: log value" parse_expr_atom ps in
expect ps SEMI;
spans ps stmts apos (Ast.STMT_log atom)
+ | LOG_ERR ->
+ bump ps;
+ let (stmts, atom) = ctxt "stmts: log value" parse_expr_atom ps in
+ expect ps SEMI;
+ spans ps stmts apos (Ast.STMT_log_err atom)
| BREAK ->
bump ps;
expect ps SEMI;