We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
abort
handle_alloc_error
1 parent fb47422 commit 357160bCopy full SHA for 357160b
alloc/src/alloc.rs
@@ -360,6 +360,7 @@ extern "Rust" {
360
#[stable(feature = "global_alloc", since = "1.28.0")]
361
#[cfg(not(any(test, bootstrap)))]
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());
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