]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #5293 : brson/rust/logging, r=brson
authorbors <bors@rust-lang.org>
Wed, 13 Mar 2013 17:40:07 +0000 (10:40 -0700)
committerbors <bors@rust-lang.org>
Wed, 13 Mar 2013 17:40:07 +0000 (10:40 -0700)
r? @graydon

This removes `log` from the language. Because we can't quite implement it as a syntax extension (probably need globals at the least) it simply renames the keyword to `__log` and hides it behind macros.

After this the only way to log is with `debug!`, `info!`, etc. I figure that if there is demand for `log!` we can add it back later.

I am not sure that we ever agreed on this course of action, though I *think* there is consensus that `log` shouldn't be a statement.

1  2 
src/librustc/back/link.rs
src/librustc/middle/trans/build.rs
src/libstd/getopts.rs
src/libsyntax/parse/parser.rs

Simple merge
Simple merge
Simple merge
Simple merge