rust/src/libstd
Sean McArthur 44440e5c18 core: split into fmt::Show and fmt::String
fmt::Show is for debugging, and can and should be implemented for
all public types. This trait is used with `{:?}` syntax. There still
exists #[derive(Show)].

fmt::String is for types that faithfully be represented as a String.
Because of this, there is no way to derive fmt::String, all
implementations must be purposeful. It is used by the default format
syntax, `{}`.

This will break most instances of `{}`, since that now requires the type
to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the
correct fix. Types that were being printed specifically for users should
receive a fmt::String implementation to fix this.

Part of #20013

[breaking-change]
2015-01-06 14:49:42 -08:00
..
collections core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
ffi std: Redesign c_str and c_vec 2015-01-05 08:00:13 -08:00
io core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
num Apply stability attributes to std::num::Float. 2015-01-06 23:21:27 +11:00
path core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
prelude rollup merge of #20565: alexcrichton/missing-stability 2015-01-05 18:41:55 -08:00
rand core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
rt rollup merge of #20482: kmcallister/macro-reform 2015-01-05 19:01:17 -08:00
sync Revert "Remove i suffix in docs" 2015-01-05 19:08:37 -08:00
sys core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
thread_local Rename macro_escape to macro_use 2015-01-05 12:00:57 -08:00
time core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
ascii.rs rollup merge of #20556: japaric/no-for-sized 2015-01-05 18:47:45 -08:00
bitflags.rs Stop using macro_escape as an inner attribute 2015-01-05 12:00:57 -08:00
bool.rs std: Remove public bool,tuple,unit modules 2014-12-18 19:13:32 -08:00
dynamic_lib.rs More test fixes! 2015-01-05 22:58:37 -08:00
error.rs std: Stabilize the prelude module 2015-01-02 08:54:06 -08:00
failure.rs remove Any[Mut]RefExt traits in favor of impl Any 2015-01-03 23:01:33 -05:00
fmt.rs core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
hash.rs Fallout 2015-01-06 14:20:48 +13:00
lib.rs More test fixes! 2015-01-05 22:58:37 -08:00
macros.rs core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
macros_stage0.rs Stop using macro_escape as an inner attribute 2015-01-05 12:00:57 -08:00
os.rs core: split into fmt::Show and fmt::String 2015-01-06 14:49:42 -08:00
rtdeps.rs libs: merge librustrt into libstd 2014-12-18 23:31:34 -08:00
thread.rs Stabilization of impls and fallout from stabilization 2015-01-05 14:26:04 -08:00
thunk.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
tuple.rs removing whitespace 2015-01-05 16:46:46 -05:00
unit.rs std: Remove public bool,tuple,unit modules 2014-12-18 19:13:32 -08:00