Stabilize unreachable_unchecked as const fn

This commit is contained in:
Jacob Pratt
2021-10-04 01:04:17 -04:00
parent e737694a4d
commit 11140ff1a0
6 changed files with 7 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ use crate::intrinsics;
/// ```
#[inline]
#[stable(feature = "unreachable", since = "1.27.0")]
#[rustc_const_unstable(feature = "const_unreachable_unchecked", issue = "53188")]
#[rustc_const_stable(feature = "const_unreachable_unchecked", since = "1.57.0")]
pub const unsafe fn unreachable_unchecked() -> ! {
// SAFETY: the safety contract for `intrinsics::unreachable` must
// be upheld by the caller.