rust/compiler/rustc_typeck
Dylan DPC 81f3841cfb
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``
2022-08-30 11:26:51 +05:30
..
src Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk 2022-08-30 11:26:51 +05:30
Cargo.toml
README.md

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.