Skip to content

Commit

Permalink
Rollup merge of rust-lang#59717 - Reconcyl:master, r=steveklabnik
Browse files Browse the repository at this point in the history
improve docs for std::hint::unreachable_unchecked()

Fixes rust-lang#59549
  • Loading branch information
Centril authored Apr 15, 2019
2 parents 2975a3c + 62a7bfd commit f247393
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libcore/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ use intrinsics;
/// 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
///
Expand Down

0 comments on commit f247393

Please sign in to comment.