diff options
| author | bors <bors@rust-lang.org> | 2020-11-23 02:25:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-23 02:25:13 +0000 |
| commit | f32459c7ba767e7f26e3c4c4bd6be326d83bcb78 (patch) | |
| tree | 761b73c26c7cdba3c25d4be8acf496f91a8226ed /library/std | |
| parent | 32da90b431919eedb3e281a91caea063ba4edb77 (diff) | |
| parent | b4c91f9a525096b52eaf3f0ffc5b147e39bca4a8 (diff) | |
| download | rust-f32459c7ba767e7f26e3c4c4bd6be326d83bcb78.tar.gz rust-f32459c7ba767e7f26e3c4c4bd6be326d83bcb78.zip | |
Auto merge of #79172 - a1phyr:cold_abort, r=Mark-Simulacrum
Add #[cold] attribute to `std::process::abort` and `alloc::alloc::handle_alloc_error`
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs index 2c7ed4614bc..2ffa7d2316a 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -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(); } |
