diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-21 17:22:45 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-22 16:14:39 -0700 |
| commit | 0a5f88a2406bf78a216ea8e2128441766dd7cd9c (patch) | |
| tree | c6aa97d45ee1fb9e16d33e6556b3111647b80e1b /src/libsyntax/parse | |
| parent | 73ffc7e7005142c5a2d898fcb2aa39018efe07fb (diff) | |
| download | rust-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')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
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") { |
