44440e5c18
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] |
||
---|---|---|
.. | ||
aarch64_unknown_linux_gnu.rs | ||
apple_base.rs | ||
arm_apple_ios.rs | ||
arm_linux_androideabi.rs | ||
arm_unknown_linux_gnueabi.rs | ||
arm_unknown_linux_gnueabihf.rs | ||
dragonfly_base.rs | ||
freebsd_base.rs | ||
i386_apple_ios.rs | ||
i686_apple_darwin.rs | ||
i686_pc_windows_gnu.rs | ||
i686_unknown_dragonfly.rs | ||
i686_unknown_linux_gnu.rs | ||
linux_base.rs | ||
mips_unknown_linux_gnu.rs | ||
mipsel_unknown_linux_gnu.rs | ||
mod.rs | ||
windows_base.rs | ||
x86_64_apple_darwin.rs | ||
x86_64_pc_windows_gnu.rs | ||
x86_64_unknown_dragonfly.rs | ||
x86_64_unknown_freebsd.rs | ||
x86_64_unknown_linux_gnu.rs |