Change the log level to be an enum rather than an int

This allows for eliminating a match check.
This commit is contained in:
Tim Chevalier
2012-08-21 17:22:45 -07:00
parent 73ffc7e700
commit 0a5f88a240
3 changed files with 10 additions and 6 deletions

View File

@@ -947,7 +947,7 @@ struct parser {
let lvl = self.parse_expr();
self.expect(token::COMMA);
let e = self.parse_expr();
ex = expr_log(2, lvl, e);
ex = expr_log(ast::other, lvl, e);
hi = self.span.hi;
self.expect(token::RPAREN);
} else if self.eat_keyword(~"assert") {