Closed danielkeller closed 2 years ago
Oh yeah, that's entirely correct. There are more UB issues such as getting &mut
access to possibly uninitialized memory, which is going to be fixed when I pick https://github.com/Traverse-Research/gpu-allocator/tree/uninit back up :grimacing:
I'm pretty sure that the implementation of
Clone
forAllocation
is unsafe, because you can clone it and callmapped_slice_mut
on both, getting two&mut
s that alias.