- 21 9月, 2018 1 次提交
-
-
由 Felix S. Klock II 提交于
-
- 21 1月, 2015 1 次提交
-
-
由 Alex Crichton 提交于
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
-
- 07 1月, 2015 1 次提交
-
-
由 Sean McArthur 提交于
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]
-
- 02 1月, 2015 1 次提交
-
-
由 Nick Cameron 提交于
-
- 17 11月, 2014 1 次提交
-
-
由 Steven Fackler 提交于
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
-
- 16 10月, 2014 1 次提交
-
-
由 Luqman Aden 提交于
-
- 28 5月, 2014 3 次提交
-
-
由 Alex Crichton 提交于
This was only ever a transitionary macro.
-
由 Alex Crichton 提交于
This commit moves reflection (as well as the {:?} format modifier) to a new libdebug crate, all of which is marked experimental. This is a breaking change because it now requires the debug crate to be explicitly linked if the :? format qualifier is used. This means that any code using this feature will have to add `extern crate debug;` to the top of the crate. Any code relying on reflection will also need to do this. Closes #12019 [breaking-change]
-
由 Richo Healey 提交于
[breaking-change]
-
- 25 5月, 2014 1 次提交
-
-
由 Richo Healey 提交于
[breaking-change]
-
- 15 5月, 2014 1 次提交
-
-
由 Patrick Walton 提交于
-
- 19 4月, 2014 1 次提交
-
-
由 Richo Healey 提交于
-
- 01 10月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 28 8月, 2013 1 次提交
-
-
由 Daniel Micay 提交于
-
- 19 5月, 2013 1 次提交
-
-
由 Corey Richardson 提交于
-
- 30 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 08 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 02 2月, 2013 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 11 12月, 2012 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 14 9月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 24 8月, 2012 1 次提交
-
-
由 Paul Stansifer 提交于
-
- 31 7月, 2012 1 次提交
-
-
由 Paul Stansifer 提交于
-
- 14 7月, 2012 1 次提交
-
-
由 Michael Sullivan 提交于
-
- 19 6月, 2012 1 次提交
-
-
由 Michael Sullivan 提交于
-
- 20 1月, 2012 2 次提交
-
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
- 18 1月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
-