diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-03 13:45:50 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 13:45:50 +0530 |
| commit | cb9932ea64b3dd799fbdbb8942e5a036af6cc7aa (patch) | |
| tree | d0378b20027ed606543dd49d5393e1e1c65c18d6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 5730f12b37f16637a6614d086ac534a9a88bfc55 (diff) | |
| parent | da3e11fc4298e6e832eba0575b77a21493a7adfe (diff) | |
| download | rust-cb9932ea64b3dd799fbdbb8942e5a036af6cc7aa.tar.gz rust-cb9932ea64b3dd799fbdbb8942e5a036af6cc7aa.zip | |
Rollup merge of #99614 - RalfJung:transmute-is-not-memcpy, r=thomcc
do not claim that transmute is like memcpy Saying transmute is like memcpy is not a well-formed statement, since memcpy is by-ref whereas transmute is by-val. The by-val nature of transmute inherently means that padding is lost along the way. (This is not specific to transmute, this is how all by-value operations work.) So adjust the docs to clarify this aspect. Cc `@workingjubilee`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
