Closed
Description
Modifying the slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.
I believe this is trying to refer to manipulating the data structure (e.g. Vec
) that owns the memory the slice is borrowing, but modifying the slice data through a slice can never cause reallocation.