about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-21 17:22:45 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-22 16:14:39 -0700
commit0a5f88a2406bf78a216ea8e2128441766dd7cd9c (patch)
treec6aa97d45ee1fb9e16d33e6556b3111647b80e1b /src/libsyntax/parse/parser.rs
parent73ffc7e7005142c5a2d898fcb2aa39018efe07fb (diff)
downloadrust-0a5f88a2406bf78a216ea8e2128441766dd7cd9c.tar.gz
rust-0a5f88a2406bf78a216ea8e2128441766dd7cd9c.zip
Change the log level to be an enum rather than an int
This allows for eliminating a match check.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index fea79309c21..fed81fa7520 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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") {