Skip to content

Commit b9321bb

Browse files
committed
Remove unreachable function. (#164)
1 parent 7860d66 commit b9321bb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib.rs

-10
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,6 @@ macro_rules! smallvec {
127127
});
128128
}
129129

130-
/// Hint to the optimizer that any code path which calls this function is
131-
/// statically unreachable and can be removed.
132-
///
133-
/// Equivalent to `std::hint::unreachable_unchecked`.
134-
#[inline]
135-
#[deprecated(note = "Use std::hint::unreachable_unchecked instead")]
136-
pub unsafe fn unreachable() -> ! {
137-
unreachable_unchecked()
138-
}
139-
140130
/// `panic!()` in debug builds, optimization hint in release.
141131
#[cfg(not(feature = "union"))]
142132
macro_rules! debug_unreachable {

0 commit comments

Comments
 (0)