rust-lang/rust — pull request #20136 by eddyb (2014-12-22 18:21:53+00:00)
Title: Remove the need for a callback to be passed to format_args!

**NOTE**: temporarily rebased on top of #20083 so the resulting generated code compiles.

We have the technology: no longer do you need to write closures to use `format_args!`.
This is a `[breaking-change]`, as it forces you to clean up old hacks - if you had code like this:
```rust
format_args!(fmt::format, "{} {} {}", a, b, c)
format_args!(|args| { w.write_fmt(args) }, "{} {} {}", x, y, z)
```
change it to this:
```rust
fmt::format(format_args!("{} {} {}", a, b, c))
format_args!(|args| { w.write_fmt(args) }, "{} {} {}", x, y, z)
```
To allow them to be called with `format_args!(...)` directly, several functions were modified to
take `fmt::Arguments` by value instead of by reference. Also, `fmt::Arguments` derives `Copy`
now in order to preserve all usecases that were previously possible.