]> git.lizzy.rs Git - rust.git/commit
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)
commit695e9fd13cd71c87e9afc0903b3fb6856452d345
tree5c97280a8ddc0e2a797912c4b3007461841d1a74
parent0ad3a110be9070b87ecd7e1c71d20a02660d8959
parent9c7e16e48d15b3380cc680f6194fe3516867d2db
auto merge of #5293 : brson/rust/logging, r=brson

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.
src/librustc/back/link.rs
src/librustc/middle/trans/build.rs
src/libstd/getopts.rs
src/libsyntax/parse/parser.rs