about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-20 18:21:48 +0100
committerGitHub <noreply@github.com>2022-11-20 18:21:48 +0100
commitdb5f005f35ee8abdf772d518fea09fcadd97fb43 (patch)
tree05543385b1c9ac898b95f27cad01361726721bdf /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent820a41580efb5c67df02dc511c2465d71b0e9f61 (diff)
parentd26659d61153922fdd44485b409747566661a674 (diff)
downloadrust-db5f005f35ee8abdf772d518fea09fcadd97fb43.tar.gz
rust-db5f005f35ee8abdf772d518fea09fcadd97fb43.zip
Rollup merge of #104568 - RalfJung:realloc, r=Amanieu
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`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions