File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 17
17
#![ feature( new_uninit) ]
18
18
#![ feature( specialization) ]
19
19
#![ feature( core_intrinsics) ]
20
- #![ feature( alloc_error_handler) ]
21
20
#![ feature( strict_provenance) ]
22
21
#![ feature( is_some_and) ]
23
22
#![ cfg_attr( target_os = "none" , no_std) ]
Original file line number Diff line number Diff line change 1
1
//! Minor functions that Rust really expects to be defined by the compiler,
2
2
//! but which we need to provide manually because we're on bare metal.
3
3
4
- use alloc:: alloc:: Layout ;
5
4
use core:: panic:: PanicInfo ;
6
5
7
6
use crate :: arch:: core_local;
@@ -15,9 +14,3 @@ fn panic(info: &PanicInfo<'_>) -> ! {
15
14
16
15
syscalls:: shutdown ( 1 )
17
16
}
18
-
19
- #[ alloc_error_handler]
20
- fn rust_oom ( layout : Layout ) -> ! {
21
- let size = layout. size ( ) ;
22
- panic ! ( "memory allocation of {size} bytes failed" )
23
- }
You can’t perform that action at this time.
0 commit comments