diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
| commit | f0dfbe7b1b8d630488441982cf3d46f82a3a89db (patch) | |
| tree | 8e26605c3d3628cd336e566b8ec7391c058c3a1a /src/comp/syntax/parse/parser.rs | |
| parent | ccb5b6fb259d5de9be751175fc53df1eaea4cd2c (diff) | |
| download | rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.tar.gz rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.zip | |
Register new snapshots, purge log_err and log_full in favour of log(...).
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 209d56a51d0..3f2c11dd821 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -165,8 +165,7 @@ fn bad_expr_word_table() -> hashmap<str, ()> { "cont", "ret", "be", "fail", "type", "resource", "check", "assert", "claim", "native", "fn", "lambda", "pure", "unsafe", "block", "import", "export", "let", "const", - "log", "log_err", "log_full", - "tag", "obj", "copy", "sendfn", "impl"] { + "log", "tag", "obj", "copy", "sendfn", "impl"] { words.insert(word, ()); } words @@ -910,10 +909,7 @@ fn parse_bottom_expr(p: parser) -> @ast::expr { hi = e.span.hi; ex = ast::expr_fail(some(e)); } else { ex = ast::expr_fail(none); } - } else if - (eat_word(p, "log_full") - || eat_word(p, "log") - || eat_word(p, "log_err")) { + } else if eat_word(p, "log") { expect(p, token::LPAREN); let lvl = parse_expr(p); expect(p, token::COMMA); |
