rust/src/libstd
Alex Crichton 4af3494bb0 std: Stabilize std::fmt
This commit applies the stabilization of std::fmt as outlined in [RFC 380][rfc].
There are a number of breaking changes as a part of this commit which will need
to be handled to migrated old code:

* A number of formatting traits have been removed: String, Bool, Char, Unsigned,
  Signed, and Float. It is recommended to instead use Show wherever possible or
  to use adaptor structs to implement other methods of formatting.

* The format specifier for Boolean has changed from `t` to `b`.

* The enum `FormatError` has been renamed to `Error` as well as becoming a unit
  struct instead of an enum. The `WriteError` variant no longer exists.

* The `format_args_method!` macro has been removed with no replacement. Alter
  code to use the `format_args!` macro instead.

* The public fields of a `Formatter` have become read-only with no replacement.
  Use a new formatting string to alter the formatting flags in combination with
  the `write!` macro. The fields can be accessed through accessor methods on the
  `Formatter` structure.

Other than these breaking changes, the contents of std::fmt should now also all
contain stability markers. Most of them are still #[unstable] or #[experimental]

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0380-stabilize-std-fmt.md
[breaking-change]

Closes #18904
2014-11-18 21:16:22 -08:00
..
collections rollup merge of #19038: jayelm/fixed-typos 2014-11-18 00:24:08 +01:00
io std: Stabilize std::fmt 2014-11-18 21:16:22 -08:00
num auto merge of #19031 : nodakai/rust/libcore-pow-and-sq, r=bjz 2014-11-18 13:41:38 +00:00
path Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
rand Windows and OS X fallout 2014-11-18 20:43:38 +13:00
rt auto merge of #18645 : nick29581/rust/coercions-1, r=alexcrichton 2014-11-18 10:46:41 +00:00
sync Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
sys Windows and OS X fallout 2014-11-18 20:43:38 +13:00
time Remove bogus Duration::span test 2014-11-17 11:26:48 -08:00
ascii.rs Move IntoString to collections::string 2014-11-16 12:41:55 +11:00
bitflags.rs Repair various cases where values of distinct types were being operated 2014-11-05 09:15:28 -05:00
c_vec.rs bubble up out-of-memory errors from liballoc 2014-11-01 19:23:20 -04:00
dynamic_lib.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
error.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
failure.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
fmt.rs std: Stabilize std::fmt 2014-11-18 21:16:22 -08:00
hash.rs DSTify Hash 2014-10-31 07:25:34 -05:00
lib.rs libcore: add borrow module 2014-11-17 11:26:30 -08:00
macros.rs std: Stabilize std::fmt 2014-11-18 21:16:22 -08:00
os.rs Make os::setenv() and os::unsetenv() panic if an error occurs 2014-11-19 05:31:45 +09:00
prelude.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
rtdeps.rs Fix spelling errors and capitalization. 2014-09-03 23:10:38 -04:00
task.rs Move ToString to collections::string 2014-11-16 12:41:55 +11:00