diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-08 22:36:10 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-15 22:26:36 -0700 |
| commit | a921dc487319e926467f8e6afd9900ed2f03aaa9 (patch) | |
| tree | 19f167d50b0ee94975646b205188f1a70c6fb437 /src/libsyntax/parse/parser.rs | |
| parent | cc6ec8df95fbd8163b7c2c6c34469fb96b704e66 (diff) | |
| download | rust-a921dc487319e926467f8e6afd9900ed2f03aaa9.tar.gz rust-a921dc487319e926467f8e6afd9900ed2f03aaa9.zip | |
rustc: Remove compiler support for __log_level()
This commit removes all internal support for the previously used __log_level() expression. The logging subsystem was previously modified to not rely on this magical expression. This also removes the only other function to use the module_data map in trans, decl_gc_metadata. It appears that this is an ancient function from a GC only used long ago. This does not remove the crate map entirely, as libgreen still uses it to hook in to the event loop provided by libgreen.
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) { |
