We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32d9b74 + 27c7537 commit b2cca1bCopy full SHA for b2cca1b
src/libcore/macros.rs
@@ -445,9 +445,10 @@ macro_rules! writeln {
445
/// * Iterators that dynamically terminate.
446
///
447
/// If the determination that the code is unreachable proves incorrect, the
448
-/// program immediately terminates with a [`panic!`]. The function [`unreachable_unchecked`],
449
-/// which belongs to the [`std::hint`] module, informs the compiler to
450
-/// optimize the code out of the release version entirely.
+/// program immediately terminates with a [`panic!`].
+///
+/// The unsafe counterpart of this macro is the [`unreachable_unchecked`] function, which
451
+/// will cause undefined behavior if the code is reached.
452
453
/// [`panic!`]: ../std/macro.panic.html
454
/// [`unreachable_unchecked`]: ../std/hint/fn.unreachable_unchecked.html
0 commit comments