]> git.lizzy.rs Git - rust.git/blob - tests/fail/provenance/strict_provenance_cast.stderr
tweak int2ptr diagnostics
[rust.git] / tests / fail / provenance / strict_provenance_cast.stderr
1 error: unsupported operation: integer-to-pointer casts and `ptr::from_exposed_addr` are not supported with `-Zmiri-strict-provenance`
2   --> $DIR/strict_provenance_cast.rs:LL:CC
3    |
4 LL |     let _ptr = addr as *const i32;
5    |                ^^^^^^^^^^^^^^^^^^ integer-to-pointer casts and `ptr::from_exposed_addr` are not supported with `-Zmiri-strict-provenance`
6    |
7    = help: use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead
8            
9    = note: inside `main` at $DIR/strict_provenance_cast.rs:LL:CC
10
11 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
12
13 error: aborting due to previous error
14