]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106584 - kpreid:vec-allocator, r=JohnTitor
authorMichael Goulet <michael@errs.io>
Mon, 9 Jan 2023 03:57:54 +0000 (19:57 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 03:57:54 +0000 (19:57 -0800)
Document that `Vec::from_raw_parts[_in]` must be given a pointer from the correct allocator.

Currently, the documentation of `Vec::from_raw_parts` and `Vec::from_raw_parts_in` says nothing about what allocator the pointer must come from. This PR adds that missing information explicitly.


Trivial merge