(self)
| 69 | /// pointers again. |
| 70 | #[inline(always)] |
| 71 | pub(crate) unsafe fn dealloc(self) { |
| 72 | unsafe { |
| 73 | let layout = self.header().vtable().box_layout; |
| 74 | let ptr = self.0.as_ptr() as *mut u8; |
| 75 | // SAFETY: the pointer was `Box`-allocated with this layout. |
| 76 | alloc::alloc::dealloc(ptr, layout); |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | pub(crate) struct GcBoxHeader { |
no test coverage detected