Function std::intrinsics::unreachable[][src]

pub const unsafe extern "rust-intrinsic" fn unreachable() -> !
🔬 This is a nightly-only experimental API. (core_intrinsics)

intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library

Expand description

通知优化器代码中的这一点不可访问,从而可以进行进一步的优化。

注意,这与 unreachable!() 宏非常不同: 与执行 panics 的宏不同,到达带有此函数标记的代码是 undefined 行为

这个 intrinsic 的稳定版本是 core::hint::unreachable_unchecked