]> git.lizzy.rs Git - rust.git/commit
auto merge of #8564 : alexcrichton/rust/ifmt+++, r=graydon
authorbors <bors@rust-lang.org>
Mon, 19 Aug 2013 08:42:05 +0000 (01:42 -0700)
committerbors <bors@rust-lang.org>
Mon, 19 Aug 2013 08:42:05 +0000 (01:42 -0700)
commit3e4f40ec5aee04c0e5386153644255b6beeba095
tree76c18bfe4ce322f612b63f103bdc89d99eab00c2
parentc178b52fe594c6724d0cf9124665de7e627899a9
parent22c7bbfd0c49330015e24adeb0f2c45ae669c29f
auto merge of #8564 : alexcrichton/rust/ifmt+++, r=graydon

See discussion in #8489, but this selects option 3 by adding a `Default` trait to be implemented by various basic types.

Once this makes it into a snapshot I think it's about time to start overhauling all current use-cases of `fmt!` to move towards `ifmt!`. The goal is to replace `%X` with `{}` in 90% of situations, and this commit should enable that.
src/libstd/fmt/mod.rs
src/libstd/fmt/parse.rs