mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
inline Option panics on panic_immediate_abort
This commit is contained in:
@@ -1656,7 +1656,8 @@ pub const fn transpose(self) -> Result<Option<T>, E> {
|
||||
}
|
||||
|
||||
// This is a separate function to reduce the code size of .expect() itself.
|
||||
#[inline(never)]
|
||||
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))]
|
||||
#[cfg_attr(feature = "panic_immediate_abort", inline)]
|
||||
#[cold]
|
||||
#[track_caller]
|
||||
const fn expect_failed(msg: &str) -> ! {
|
||||
|
||||
Reference in New Issue
Block a user