mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Rollup merge of #59717 - Reconcyl:master, r=steveklabnik
improve docs for std::hint::unreachable_unchecked() Fixes #59549
This commit is contained in:
+3
-4
@@ -21,11 +21,10 @@
|
||||
/// difficult-to-debug problems.
|
||||
///
|
||||
/// Use this function only when you can prove that the code will never call it.
|
||||
/// Otherwise, consider using the [`unreachable!`] macro, which does not allow
|
||||
/// optimizations but will panic when executed.
|
||||
///
|
||||
/// The [`unreachable!()`] macro is the safe counterpart of this function, which
|
||||
/// will panic instead when executed.
|
||||
///
|
||||
/// [`unreachable!()`]: ../macro.unreachable.html
|
||||
/// [`unreachable!`]: ../macro.unreachable.html
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user