diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-12 19:17:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-12 19:17:33 +0100 |
| commit | 5b3cb68d97f674ae4f1243d3234056f612ac9f7c (patch) | |
| tree | db4a52eb1fc6810b53b493f6fc22401f12c254e3 /library/std/src | |
| parent | f522f268676de8c3b2e7d655208e20acd37bb2fc (diff) | |
| parent | b41b2e5a5cb9aa3d56dd2da23c2438d16fef9997 (diff) | |
| download | rust-5b3cb68d97f674ae4f1243d3234056f612ac9f7c.tar.gz rust-5b3cb68d97f674ae4f1243d3234056f612ac9f7c.zip | |
Rollup merge of #90798 - edmorley:doc-unreachable-custom-message, r=dtolnay
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
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions
