mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
145e35a6e3
alloc boxed: docs: use MaybeUninit::write instead of as_mut_ptr In the deferred initialization pattern, the docs were needlessly going through `as_mut_ptr().write()` to initialize, which is unnecessary use of a pointer, needs to be inside an `unsafe` block, and may weaken alias analysis.