2022-06-28 07:52:22 -05:00
|
|
|
error: unsupported operation: integer-to-pointer casts and `ptr::from_exposed_addr` are not supported with `-Zmiri-strict-provenance`
|
2022-06-26 20:26:14 -05:00
|
|
|
--> $DIR/strict_provenance_cast.rs:LL:CC
|
|
|
|
|
|
|
|
|
LL | let _ptr = addr as *const i32;
|
2022-06-28 07:52:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ integer-to-pointer casts and `ptr::from_exposed_addr` are not supported with `-Zmiri-strict-provenance`
|
2022-06-26 20:26:14 -05:00
|
|
|
|
|
2022-06-28 07:52:22 -05:00
|
|
|
= help: use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead
|
2022-07-02 09:11:39 -05:00
|
|
|
= note: backtrace:
|
2022-06-26 20:26:14 -05:00
|
|
|
= note: inside `main` at $DIR/strict_provenance_cast.rs:LL:CC
|
|
|
|
|
|
|
|
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|