Skip to content

Commit faadd35

Browse files
committed
Add #[inline] to mem::unreachable
1 parent 5704b07 commit faadd35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem.rs

+1
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ impl<T: ::fmt::Debug> ::fmt::Debug for ManuallyDrop<T> {
949949
/// NB: This is very different from the `unreachable!()` macro: Unlike the
950950
/// macro, which panics when it is executed, it is *undefined behavior* to
951951
/// reach code marked with this function.
952+
#[inline]
952953
#[unstable(feature = "unreachable", issue = "43751")]
953954
pub unsafe fn unreachable() -> ! {
954955
intrinsics::unreachable()

0 commit comments

Comments
 (0)