]> git.lizzy.rs Git - rust.git/commit
auto merge of #5278 : brson/rust/logplusplus, r=brson
authorbors <bors@rust-lang.org>
Fri, 8 Mar 2013 20:27:39 +0000 (12:27 -0800)
committerbors <bors@rust-lang.org>
Fri, 8 Mar 2013 20:27:39 +0000 (12:27 -0800)
commiteaed16cea6c83c49bfb3d4a663f9b715f86d1f37
treeb36b1e90ed9915362fc260554ab3b44da15eb4bb
parentac3dc66ec14100c04de232b2aba366301a05a837
parentdd4d45062d8a9715250e2b912d8fcf4817e3995e
auto merge of #5278 : brson/rust/logplusplus, r=brson

r?

`log` can  polymorphically log anything, but debug!, etc. requires a format string. With this patch you can equivalently write `debug!(foo)` or `debug!("%?", foo)`.

I'm doing this because I was trying to remove `log` (replacing it with nothing, at least temporarily), but there are a number of logging statements that just want to print an arbitrary value and don't care about the format string.

I'm not entirely convinced this is a good change, since it overloads the implementation of these macros and makes their usage slightly more nuanced.
src/libsyntax/ext/expand.rs