Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement split_at_spare_mut directly
The previous implementation used slice::as_mut_ptr_range to derive the pointer for the spare capacity slice. This is invalid, because that pointer is derived from the initialized region, so it does not have provenance over the uninitialized region.
- Loading branch information