diff options
| author | SabrinaJewson <sejewson@gmail.com> | 2025-08-11 17:09:01 +0100 |
|---|---|---|
| committer | SabrinaJewson <sejewson@gmail.com> | 2025-08-11 17:15:53 +0100 |
| commit | 19df24b3b8778d929bbef50bf64330defa1412bb (patch) | |
| tree | 1f4e88ebe450973838d8e70fe6ae6579ac727707 /tests/coverage/branch/lazy-boolean.cov-map | |
| parent | 577166503aee7290e09374da21f4045c455acfd5 (diff) | |
| download | rust-19df24b3b8778d929bbef50bf64330defa1412bb.tar.gz rust-19df24b3b8778d929bbef50bf64330defa1412bb.zip | |
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 'tests/coverage/branch/lazy-boolean.cov-map')
0 files changed, 0 insertions, 0 deletions
