about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJed Brown <jed@jedbrown.org>2025-02-13 09:13:33 -0700
committerJed Brown <jed@jedbrown.org>2025-02-13 09:13:33 -0700
commit2f27236745fab41c73450cdb31cdf9d0db502dda (patch)
treed1c210e1b5d25e54478f2b5a9bec39ca53c931fb /compiler/rustc_codegen_llvm/src
parent9fcc9cf4a202aadfe1f44722b39c83536eba3dba (diff)
downloadrust-2f27236745fab41c73450cdb31cdf9d0db502dda.tar.gz
rust-2f27236745fab41c73450cdb31cdf9d0db502dda.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions