(&self, layout: Layout)
| 138 | #[cfg(not(all(feature = "disable_release", not(debug_assertions))))] // if not disabled |
| 139 | unsafe impl GlobalAlloc for AllocDisabler { |
| 140 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { |
| 141 | self.check(layout); |
| 142 | System.alloc(layout) |
| 143 | } |
| 144 | |
| 145 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { |
| 146 | self.check(layout); |