diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-30 11:26:51 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-30 11:26:51 +0530 |
| commit | f2d73af6d7afe065035081fcf27c02490af68a79 (patch) | |
| tree | fdd4385cb7b927737842d1d091feef4f58668524 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | 7006047b2d426d2cff6e02b515aeb9335066584f (diff) | |
| parent | c32ad5c229e3b3812e555cfe43caa579a4a4aa8c (diff) | |
| download | rust-f2d73af6d7afe065035081fcf27c02490af68a79.tar.gz rust-f2d73af6d7afe065035081fcf27c02490af68a79.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 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
