about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-03-01 15:07:38 +0900
committerGitHub <noreply@github.com>2021-03-01 15:07:38 +0900
commit1b9f420e1b1c95ac15c5fa84e9e2bbbd5ac3f308 (patch)
treec6d5a697949ed3925e8050697d622b647dbb9455 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentd65b231ceca9ba38c95fb19b8486a09fc7f44fa9 (diff)
parentcdfff98394d01054acbe27f8416e8de2d6178c3b (diff)
downloadrust-1b9f420e1b1c95ac15c5fa84e9e2bbbd5ac3f308.tar.gz
rust-1b9f420e1b1c95ac15c5fa84e9e2bbbd5ac3f308.zip
Rollup merge of #82628 - vakaras:realloc-doc, r=Mark-Simulacrum
Try to clarify GlobalAlloc::realloc documentation comment.

This PR tries to improve the documentation of [GlobalAlloc::realloc](https://doc.rust-lang.org/alloc/alloc/trait.GlobalAlloc.html#method.realloc) with two aspects:

1. Explicitly mention that `realloc` preserves the contents of the original memory block.
2. Explicitly mention which layout should be used to deallocate the reallocated block.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions