File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -383,13 +383,13 @@ pub mod __alloc_error_handler {
383
383
384
384
// if there is no `#[alloc_error_handler]`
385
385
#[ rustc_std_internal_symbol]
386
- pub unsafe extern "C" fn __rdl_oom ( size : usize , _align : usize ) -> ! {
386
+ pub unsafe extern "C-unwind " fn __rdl_oom ( size : usize , _align : usize ) -> ! {
387
387
panic ! ( "memory allocation of {} bytes failed" , size)
388
388
}
389
389
390
390
// if there is an `#[alloc_error_handler]`
391
391
#[ rustc_std_internal_symbol]
392
- pub unsafe extern "C" fn __rg_oom ( size : usize , align : usize ) -> ! {
392
+ pub unsafe extern "C-unwind " fn __rg_oom ( size : usize , align : usize ) -> ! {
393
393
let layout = unsafe { Layout :: from_size_align_unchecked ( size, align) } ;
394
394
extern "Rust" {
395
395
#[ lang = "oom" ]
Original file line number Diff line number Diff line change 152
152
#![ cfg_attr( test, feature( test) ) ]
153
153
#![ feature( unboxed_closures) ]
154
154
#![ feature( unsized_fn_params) ]
155
+ #![ feature( c_unwind) ]
155
156
//
156
157
// Rustdoc features:
157
158
#![ feature( doc_cfg) ]
You can’t perform that action at this time.
0 commit comments