about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-03 13:45:50 +0530
committerGitHub <noreply@github.com>2022-08-03 13:45:50 +0530
commitcb9932ea64b3dd799fbdbb8942e5a036af6cc7aa (patch)
treed0378b20027ed606543dd49d5393e1e1c65c18d6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent5730f12b37f16637a6614d086ac534a9a88bfc55 (diff)
parentda3e11fc4298e6e832eba0575b77a21493a7adfe (diff)
downloadrust-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