diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-12 20:37:56 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 20:37:56 +1000 |
| commit | 30ed54e3e4de885cc40597d2b9d7f326c9c61151 (patch) | |
| tree | eb3c524ec28f1985402f9cef7c3f189cd96f8d10 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 1c38519319a72ab197c0820d2e61b3bfea7d08fc (diff) | |
| parent | 1ce4b370e44fbac89b75438c8e75b26bff18d496 (diff) | |
| download | rust-30ed54e3e4de885cc40597d2b9d7f326c9c61151.tar.gz rust-30ed54e3e4de885cc40597d2b9d7f326c9c61151.zip | |
Rollup merge of #145260 - SabrinaJewson:vec-allocator-docs, r=dtolnay
Make explicit guarantees about `Vec`’s allocator This commit amends the documentation of `Vec::as_mut_ptr` and `Vec::into_raw_parts` to make it explicit that such calls may be paired with calls to `dealloc` with a suitable layout. This guarantee was effectively already provided by the docs of `Vec::from_raw_parts` mentioning `alloc`. Additionally, we copy-paste and adjust the “Memory layout” section from the documentation of `std::boxed` to `std::vec`. This explains the allocator guarantees in more detail.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
