]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #40117 - SimonSapin:to-err-is-for-the-formatter, r=alexcrichton
authorCorey Farwell <coreyf@rwell.org>
Thu, 2 Mar 2017 19:53:44 +0000 (14:53 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 19:53:44 +0000 (14:53 -0500)
Panic on errors in `format!` or `<T: Display>::to_string`

… instead of silently ignoring a result.

`fmt::Write for String` never returns `Err`, so implementations of `Display` (or other traits of that family) never should either.

Fixes #40103

1  2 
src/libcollections/string.rs

Simple merge