about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-02 13:31:02 +0000
committerbors <bors@rust-lang.org>2021-08-02 13:31:02 +0000
commit3227e35765bab6d02c581928e26ad1d34bacf394 (patch)
tree52efcea7da782882ff41419a780e4981c0786671 /compiler/rustc_codegen_llvm/src
parentd08460e70cd77945ecfa6f4826c82ed4ba29fb76 (diff)
parent2a9b44d97d55779b3758a1f0558b22de3a6572ea (diff)
downloadrust-3227e35765bab6d02c581928e26ad1d34bacf394.tar.gz
rust-3227e35765bab6d02c581928e26ad1d34bacf394.zip
Auto merge of #87248 - RalfJung:ctfe-partial-overwrite, r=oli-obk
CTFE: throw unsupported error when partially overwriting a pointer

Currently, during CTFE, when a write to memory would overwrite parts of a pointer, we make the remaining parts of that pointer "uninitialized". This is probably not what users expect, so if this ever happens they will be quite confused about why some of the data just vanishes for seemingly no good reason.
So I propose we change this to abort CTFE when that happens, to at last avoid silently doing the wrong thing.
Cc https://github.com/rust-lang/rust/issues/87184

Our CTFE test suite still seems to pass. However, we should probably crater this, and I want to do some tests with Miri as well.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions