diff options
| author | bors <bors@rust-lang.org> | 2014-03-15 23:01:24 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-15 23:01:24 -0700 |
| commit | f6fcdbb68718380beca798d087c46152cad0949c (patch) | |
| tree | c6b7fd10bb869fba19561852cf4eb286b0f96a4f /src/libsyntax/parse/parser.rs | |
| parent | abd844e4df068196d1150ac39d596f73e210d95d (diff) | |
| parent | 0015cab1fd7b4b47030c808a825bb5594cc1d4ac (diff) | |
| download | rust-f6fcdbb68718380beca798d087c46152cad0949c.tar.gz rust-f6fcdbb68718380beca798d087c46152cad0949c.zip | |
auto merge of #12791 : alexcrichton/rust/liblog, r=brson
The rationale and modifications can be found in the first commit message. This does make logging a bit more painful to use initially because it involves a feature gate and some `phase` attributes, but I think it may be reasonable to not require the `phase` attribute for loading `macro_rules!` macros because defining them will still be gated.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 040c4da6885..f52effb8c81 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -25,7 +25,7 @@ use ast::{Expr, Expr_, ExprAddrOf, ExprMatch, ExprAgain}; use ast::{ExprAssign, ExprAssignOp, ExprBinary, ExprBlock, ExprBox}; use ast::{ExprBreak, ExprCall, ExprCast}; use ast::{ExprField, ExprFnBlock, ExprIf, ExprIndex}; -use ast::{ExprLit, ExprLogLevel, ExprLoop, ExprMac}; +use ast::{ExprLit, ExprLoop, ExprMac}; use ast::{ExprMethodCall, ExprParen, ExprPath, ExprProc}; use ast::{ExprRepeat, ExprRet, ExprStruct, ExprTup, ExprUnary}; use ast::{ExprVec, ExprVstore, ExprVstoreSlice}; @@ -1886,12 +1886,6 @@ impl Parser { } } hi = self.last_span.hi; - } else if self.eat_keyword(keywords::__LogLevel) { - // LOG LEVEL expression - self.expect(&token::LPAREN); - ex = ExprLogLevel; - hi = self.span.hi; - self.expect(&token::RPAREN); } else if self.eat_keyword(keywords::Return) { // RETURN expression if can_begin_expr(&self.token) { |
