(&self, layout: std::alloc::Layout)
| 39 | |
| 40 | unsafe impl GlobalAlloc for DebuggingAlloc { |
| 41 | unsafe fn alloc(&self, layout: std::alloc::Layout) -> *mut u8 { |
| 42 | let ptr = System.alloc(layout); |
| 43 | self.check_alloc_failure(ptr, layout); |
| 44 | ptr |
| 45 | } |
| 46 | |
| 47 | unsafe fn dealloc(&self, ptr: *mut u8, layout: std::alloc::Layout) { |
| 48 | System.dealloc(ptr, layout) |
nothing calls this directly
no test coverage detected