diff options
| author | Jed Brown <jed@jedbrown.org> | 2025-02-13 09:13:33 -0700 |
|---|---|---|
| committer | Jed Brown <jed@jedbrown.org> | 2025-02-13 09:13:33 -0700 |
| commit | 2f27236745fab41c73450cdb31cdf9d0db502dda (patch) | |
| tree | d1c210e1b5d25e54478f2b5a9bec39ca53c931fb /compiler/rustc_codegen_llvm/src | |
| parent | 9fcc9cf4a202aadfe1f44722b39c83536eba3dba (diff) | |
| download | rust-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
