]> git.lizzy.rs Git - rust.git/commit
std: Relax Result::unwrap() to Debug
authorAlex Crichton <alex@alexcrichton.com>
Fri, 23 Jan 2015 18:38:50 +0000 (10:38 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 23 Jan 2015 22:11:34 +0000 (14:11 -0800)
commit08246520c0fef902b169233e26e15cf58ef1cd8b
tree47aa2924eefd0a7fa9609fdf7c35cf83628a0ee8
parent86fbdbfbcd4c019fda26ff73b9e1e30ed7a8b174
std: Relax Result::unwrap() to Debug

This commit relaxes the bound on `Result::unwrap` and `Result::unwrap_err` from
the `Display` trait to the `Debug` trait for generating an error message about
the unwrapping operation.

This commit is a breaking change and any breakage should be mitigated by
ensuring that `Debug` is implemented on the relevant type.

[breaking-change]
src/libcore/result.rs
src/libstd/sync/mpsc/mod.rs
src/libstd/sync/poison.rs