diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-01 12:07:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-01 12:07:05 +0200 |
| commit | a92286f9c92d7dc6189bf56c8fa0487bb51d2298 (patch) | |
| tree | a7970727498950f449826e42bc65af553eefaec9 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | b81d235974911be790ae75ecab72bb3a8d2a85d6 (diff) | |
| parent | e2466821add3873d1feb0cc28f3b31e7cf1629fd (diff) | |
| download | rust-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/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
