Add #[inline] to mem::unreachable
This commit is contained in:
parent
5704b07667
commit
faadd35ee5
1 changed files with 1 additions and 0 deletions
|
|
@ -949,6 +949,7 @@ impl<T: ::fmt::Debug> ::fmt::Debug for ManuallyDrop<T> {
|
|||
/// NB: This is very different from the `unreachable!()` macro: Unlike the
|
||||
/// macro, which panics when it is executed, it is *undefined behavior* to
|
||||
/// reach code marked with this function.
|
||||
#[inline]
|
||||
#[unstable(feature = "unreachable", issue = "43751")]
|
||||
pub unsafe fn unreachable() -> ! {
|
||||
intrinsics::unreachable()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue