1
Fork 0
rust/compiler/rustc_const_eval/src
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
..
const_eval Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk 2022-08-30 11:26:51 +05:30
interpret Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk 2022-08-30 11:26:51 +05:30
transform Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
util Auto merge of #100064 - RalfJung:disaligned, r=petrochenkov 2022-08-03 16:09:56 +00:00
errors.rs Addressing last comment on PR review 2022-08-22 12:14:49 -03:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
might_permit_raw_init.rs fix ICE with extra-const-ub-checks 2022-08-21 20:00:38 -04:00