Skip to content

Commit

Permalink
Remove unreachable function. (servo#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio authored and dpc committed Oct 30, 2019
1 parent ecaeb59 commit 2da5d94
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 2da5d94

Please sign in to comment.