]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/alloc.rs
Auto merge of #97033 - nbdd0121:unwind3, r=Amanieu
[rust.git] / library / alloc / src / alloc.rs
index 6162b5c6d4c9308fa379f9ab9567e57f22ba02a5..649aeb0890dc050ee32f55b760538e80243da5b4 100644 (file)
@@ -398,13 +398,13 @@ pub mod __alloc_error_handler {
 
     // if there is no `#[alloc_error_handler]`
     #[rustc_std_internal_symbol]
-    pub unsafe extern "C-unwind" fn __rdl_oom(size: usize, _align: usize) -> ! {
+    pub unsafe fn __rdl_oom(size: usize, _align: usize) -> ! {
         panic!("memory allocation of {size} bytes failed")
     }
 
     // if there is an `#[alloc_error_handler]`
     #[rustc_std_internal_symbol]
-    pub unsafe extern "C-unwind" fn __rg_oom(size: usize, align: usize) -> ! {
+    pub unsafe fn __rg_oom(size: usize, align: usize) -> ! {
         let layout = unsafe { Layout::from_size_align_unchecked(size, align) };
         extern "Rust" {
             #[lang = "oom"]