1
Fork 0

Add #[cold] to abort and handle_alloc_error

This commit is contained in:
Benoît du Garreau 2020-11-18 18:15:03 +01:00
parent 7d747db0d5
commit b4c91f9a52
2 changed files with 2 additions and 0 deletions

View file

@ -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();
}