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.
2 parents 97dd46c + 357160b commit 78c9416Copy full SHA for 78c9416
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());
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