mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
5b3cb68d97
Document `unreachable!` custom panic message
The `unreachable!` docs previously did not mention that there was a second form, `unreachable!("message")` that could be used to specify a custom panic message,
The docs now mention this feature in the same wording as currently used for `unimplemented!`:
https://doc.rust-lang.org/core/macro.unimplemented.html#panics