We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2975a3c + 62a7bfd commit d9422f0Copy full SHA for d9422f0
src/libcore/hint.rs
@@ -21,11 +21,10 @@ use intrinsics;
21
/// difficult-to-debug problems.
22
///
23
/// Use this function only when you can prove that the code will never call it.
24
+/// Otherwise, consider using the [`unreachable!`] macro, which does not allow
25
+/// optimizations but will panic when executed.
26
-/// The [`unreachable!()`] macro is the safe counterpart of this function, which
-/// will panic instead when executed.
27
-///
28
-/// [`unreachable!()`]: ../macro.unreachable.html
+/// [`unreachable!`]: ../macro.unreachable.html
29
30
/// # Example
31
0 commit comments