rust/src/libcore
Alex Crichton 3cb9fa26ef std: Rename Show/String to Debug/Display
This commit is an implementation of [RFC 565][rfc] which is a stabilization of
the `std::fmt` module and the implementations of various formatting traits.
Specifically, the following changes were performed:

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0565-show-string-guidelines.md

* The `Show` trait is now deprecated, it was renamed to `Debug`
* The `String` trait is now deprecated, it was renamed to `Display`
* Many `Debug` and `Display` implementations were audited in accordance with the
  RFC and audited implementations now have the `#[stable]` attribute
  * Integers and floats no longer print a suffix
  * Smart pointers no longer print details that they are a smart pointer
  * Paths with `Debug` are now quoted and escape characters
* The `unwrap` methods on `Result` now require `Display` instead of `Debug`
* The `Error` trait no longer has a `detail` method and now requires that
  `Display` must be implemented. With the loss of `String`, this has moved into
  libcore.
* `impl<E: Error> FromError<E> for Box<Error>` now exists
* `derive(Show)` has been renamed to `derive(Debug)`. This is not currently
  warned about due to warnings being emitted on stage1+

While backwards compatibility is attempted to be maintained with a blanket
implementation of `Display` for the old `String` trait (and the same for
`Show`/`Debug`) this is still a breaking change due to primitives no longer
implementing `String` as well as modifications such as `unwrap` and the `Error`
trait. Most code is fairly straightforward to update with a rename or tweaks of
method calls.

[breaking-change]
Closes #21436
2015-01-20 22:36:13 -08:00
..
fmt std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
hash std: Stabilize TypeId and tweak BoxAny 2015-01-18 18:29:22 -08:00
num Register new snapshots. 2015-01-17 16:37:34 -08:00
str std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
any.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
array.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
atomic.rs Remove unnecessary explicit conversions to *const T 2015-01-17 07:34:10 +03:00
borrow.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
cell.rs Evaluate # fn in docs 2015-01-17 10:49:49 -05:00
char.rs Stabilization of impls and fallout from stabilization 2015-01-05 14:26:04 -08:00
clone.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
cmp.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
default.rs sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs 2015-01-03 22:54:18 -05:00
error.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
finally.rs Evaluate # fn in docs 2015-01-17 10:49:49 -05:00
intrinsics.rs std: Stabilize TypeId and tweak BoxAny 2015-01-18 18:29:22 -08:00
iter.rs Register new snapshots. 2015-01-17 16:37:34 -08:00
lib.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
macros.rs Evaluate # fn in docs 2015-01-17 10:49:49 -05:00
marker.rs Beef up Copy documentation 2015-01-17 10:51:07 -05:00
mem.rs markers -> marker 2015-01-07 12:10:31 +13:00
nonzero.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
ops.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
option.rs Remove unneeded box import in examples 2015-01-13 12:56:10 -06:00
panicking.rs Register new snapshots 2014-12-30 15:04:43 -08:00
prelude.rs Evaluate # fn in docs 2015-01-17 10:49:49 -05:00
ptr.rs Remove unnecessary explicit conversions to *const T 2015-01-17 07:34:10 +03:00
raw.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
result.rs std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
simd.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
slice.rs Remove unnecessary explicit conversions to *const T 2015-01-17 07:34:10 +03:00
tuple.rs Remove erroneous stability attribute. 2015-01-14 18:58:26 -08:00
ty.rs markers -> marker 2015-01-07 12:10:31 +13:00