mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
db5f005f35
clarify that realloc refreshes pointer provenance even when the allocation remains in-place This [matches what C does](https://en.cppreference.com/w/c/memory/realloc): > The original pointer ptr is invalidated and any access to it is undefined behavior (even if reallocation was in-place). Cc `@rust-lang/wg-allocators`