Add optional messages to the unreachable macro.

Closes #18842.
auto merge of #18867 : michaelsproul/rust/unreachable-formatting, r=pcwalton

Closes #18842.