Closed zachs18 closed 1 month ago
Box does not actually perform an allocation for zero-sized values, so BoxBytes::drop should not call dealloc if self.layout.size() == 0.
Box
BoxBytes::drop
dealloc
self.layout.size() == 0
Box
does not actually perform an allocation for zero-sized values, soBoxBytes::drop
should not calldealloc
ifself.layout.size() == 0
.