Skip to content

Commit

Permalink
Remove unreachable function. (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Oct 19, 2019
1 parent 7860d66 commit b9321bb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,6 @@ macro_rules! smallvec {
});
}

/// Hint to the optimizer that any code path which calls this function is
/// statically unreachable and can be removed.
///
/// Equivalent to `std::hint::unreachable_unchecked`.
#[inline]
#[deprecated(note = "Use std::hint::unreachable_unchecked instead")]
pub unsafe fn unreachable() -> ! {
unreachable_unchecked()
}

/// `panic!()` in debug builds, optimization hint in release.
#[cfg(not(feature = "union"))]
macro_rules! debug_unreachable {
Expand Down

0 comments on commit b9321bb

Please sign in to comment.