Auto merge of #79172 - a1phyr:cold_abort, r=Mark-Simulacrum
Add #[cold] attribute to `std::process::abort` and `alloc::alloc::handle_alloc_error`
This commit is contained in:
commit
f32459c7ba
2 changed files with 2 additions and 0 deletions
|
@ -1779,6 +1779,7 @@ pub fn exit(code: i32) -> ! {
|
|||
///
|
||||
/// [panic hook]: crate::panic::set_hook
|
||||
#[stable(feature = "process_abort", since = "1.17.0")]
|
||||
#[cold]
|
||||
pub fn abort() -> ! {
|
||||
crate::sys::abort_internal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue