about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-01 12:07:05 +0200
committerGitHub <noreply@github.com>2022-04-01 12:07:05 +0200
commita92286f9c92d7dc6189bf56c8fa0487bb51d2298 (patch)
treea7970727498950f449826e42bc65af553eefaec9 /compiler/rustc_codegen_gcc
parentb81d235974911be790ae75ecab72bb3a8d2a85d6 (diff)
parente2466821add3873d1feb0cc28f3b31e7cf1629fd (diff)
downloadrust-a92286f9c92d7dc6189bf56c8fa0487bb51d2298.tar.gz
rust-a92286f9c92d7dc6189bf56c8fa0487bb51d2298.zip
Rollup merge of #95546 - autumnontape:allocator-realloc-align-docs, r=Amanieu
add notes about alignment-altering reallocations to Allocator docs

As I said in https://github.com/rust-lang/wg-allocators/issues/97, the fact that calls to `grow`, `grow_zeroed`, and `shrink` may request altered alignments is surprising and may be a pitfall for implementors of `Allocator` if it's left implicit. This pull request adds a note to the "Safety" section of each function's docs making it explicit.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions