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-30 11:26:51 +0530
committerGitHub <noreply@github.com>2022-08-30 11:26:51 +0530
commit81f3841cfb5eae52d7914dfebb6a55b5951c5c3c (patch)
tree8f53022e4f14533603ae07b48c3d9b0ce2eaf6c7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent1ea84961e81de8e0eebbb8353d7867a039ffa70f (diff)
parentc46e803aaf5a0bfc5dfcd1570349eee71ce81634 (diff)
downloadrust-81f3841cfb5eae52d7914dfebb6a55b5951c5c3c.tar.gz
rust-81f3841cfb5eae52d7914dfebb6a55b5951c5c3c.zip
Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk
interpret: make read-pointer-as-bytes a CTFE-only error with extra information

Next step in the reaction to https://github.com/rust-lang/rust/issues/99923. Also teaches Miri to implicitly strip provenance in more situations when transmuting pointers to integers, which fixes https://github.com/rust-lang/miri/issues/2456.

Pointer-to-int transmutation during CTFE now produces a message like this:
```
   = help: this code performed an operation that depends on the underlying bytes representing a pointer
   = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
```

r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions