summary refs log tree commit diff
path: root/library/std/src/process.rs
diff options
context:
space:
mode:
authorBenoît du Garreau <benoit.dugarreau@platform.sh>2020-11-18 18:15:03 +0100
committerBenoît du Garreau <benoit.dugarreau@platform.sh>2020-11-18 18:15:03 +0100
commitb4c91f9a525096b52eaf3f0ffc5b147e39bca4a8 (patch)
treece0b215bc1138660ae029be442c05b1186c17f12 /library/std/src/process.rs
parent7d747db0d5dd8f08f2efb073e2e77a34553465a7 (diff)
downloadrust-b4c91f9a525096b52eaf3f0ffc5b147e39bca4a8.tar.gz
rust-b4c91f9a525096b52eaf3f0ffc5b147e39bca4a8.zip
Add #[cold] to `abort` and `handle_alloc_error`
Diffstat (limited to 'library/std/src/process.rs')
-rw-r--r--library/std/src/process.rs1
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();
 }