diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2017-08-11 03:42:36 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2017-08-11 03:42:36 +0200 |
| commit | faadd35ee5074aa85fa6e2078650b3e6f1fd4662 (patch) | |
| tree | aa134defb8bf44f702f2d0d9abc3335f323ef2fb /src/libcore | |
| parent | 5704b07667fddb415a1df202885f5ffabe386ff2 (diff) | |
| download | rust-faadd35ee5074aa85fa6e2078650b3e6f1fd4662.tar.gz rust-faadd35ee5074aa85fa6e2078650b3e6f1fd4662.zip | |
Add `#[inline]` to `mem::unreachable`
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 045720b0268..6f7adbe1e7a 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -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() |
