Commit graph

5 commits

Author SHA1 Message Date
Simon Sapin
399dcd1127 Add missing micro version number component in stability attributes. 2018-01-24 22:25:42 +01:00
Simon Sapin
f15c816932 Make PanicInfo::message available for std::panic! with a formatting string.
This enables PanicInfo’s Display impl to show the panic message in those cases.
2018-01-23 18:31:09 +01:00
Simon Sapin
0e60287b41 Implement Display for PanicInfo and Location
Due to being in libcore,
this impl cannot access PanicInfo::payload if it’s a String.
2018-01-23 18:04:50 +01:00
Simon Sapin
9e96c1ef7f Add an unstable PanicInfo::message(&self) -> Option<&fmt::Arguments> method 2018-01-23 17:24:19 +01:00
Simon Sapin
2f98f4b12b Move PanicInfo and Location to libcore
Per https://rust-lang.github.io/rfcs/2070-panic-implementation.html
2018-01-23 16:38:26 +01:00