about summary refs log tree commit diff
path: root/library/std/src/sys/unix/kernel_copy.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-12 19:17:33 +0100
committerGitHub <noreply@github.com>2021-11-12 19:17:33 +0100
commit5b3cb68d97f674ae4f1243d3234056f612ac9f7c (patch)
treedb4a52eb1fc6810b53b493f6fc22401f12c254e3 /library/std/src/sys/unix/kernel_copy.rs
parentf522f268676de8c3b2e7d655208e20acd37bb2fc (diff)
parentb41b2e5a5cb9aa3d56dd2da23c2438d16fef9997 (diff)
downloadrust-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/sys/unix/kernel_copy.rs')
0 files changed, 0 insertions, 0 deletions