We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32da90b + b4c91f9 commit f32459cCopy full SHA for f32459c
library/alloc/src/alloc.rs
@@ -360,6 +360,7 @@ extern "Rust" {
360
#[stable(feature = "global_alloc", since = "1.28.0")]
361
#[cfg(not(test))]
362
#[rustc_allocator_nounwind]
363
+#[cold]
364
pub fn handle_alloc_error(layout: Layout) -> ! {
365
unsafe {
366
__rust_alloc_error_handler(layout.size(), layout.align());
library/std/src/process.rs
@@ -1779,6 +1779,7 @@ pub fn exit(code: i32) -> ! {
1779
///
1780
/// [panic hook]: crate::panic::set_hook
1781
#[stable(feature = "process_abort", since = "1.17.0")]
1782
1783
pub fn abort() -> ! {
1784
crate::sys::abort_internal();
1785
}
0 commit comments