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 51a84b8 + 0e74aff commit 359c5a2Copy full SHA for 359c5a2
rust/kernel/allocator.rs
@@ -27,11 +27,6 @@ unsafe impl GlobalAlloc for KernelAllocator {
27
#[global_allocator]
28
static ALLOCATOR: KernelAllocator = KernelAllocator;
29
30
-#[alloc_error_handler]
31
-fn oom(_layout: Layout) -> ! {
32
- panic!("Out of memory!");
33
-}
34
-
35
// `rustc` only generates these for some crate types. Even then, we would need
36
// to extract the object file that has them from the archive. For the moment,
37
// let's generate them ourselves instead.
@@ -66,8 +61,3 @@ pub fn __rust_alloc_zeroed(size: usize, _align: usize) -> *mut u8 {
66
61
) as *mut u8
67
62
}
68
63
69
70
-#[no_mangle]
71
-pub fn __rust_alloc_error_handler(_size: usize, _align: usize) -> ! {
72
73
0 commit comments