-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
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.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools