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 7d747db commit b4c91f9Copy full SHA for b4c91f9
library/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());
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