File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -396,13 +396,13 @@ pub mod __alloc_error_handler {
396396
397397 // if there is no `#[alloc_error_handler]`
398398 #[ rustc_std_internal_symbol]
399- pub unsafe extern "C" fn __rdl_oom ( size : usize , _align : usize ) -> ! {
399+ pub unsafe extern "C-unwind " fn __rdl_oom ( size : usize , _align : usize ) -> ! {
400400 panic ! ( "memory allocation of {} bytes failed" , size)
401401 }
402402
403403 // if there is an `#[alloc_error_handler]`
404404 #[ rustc_std_internal_symbol]
405- pub unsafe extern "C" fn __rg_oom ( size : usize , align : usize ) -> ! {
405+ pub unsafe extern "C-unwind " fn __rg_oom ( size : usize , align : usize ) -> ! {
406406 let layout = unsafe { Layout :: from_size_align_unchecked ( size, align) } ;
407407 extern "Rust" {
408408 #[ lang = "oom" ]
Original file line number Diff line number Diff line change 163163#![ cfg_attr( test, feature( test) ) ]
164164#![ feature( unboxed_closures) ]
165165#![ feature( unsized_fn_params) ]
166+ #![ feature( c_unwind) ]
166167//
167168// Rustdoc features:
168169#![ feature( doc_cfg) ]
You can’t perform that action at this time.
0 commit comments