about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2022-05-13 12:30:25 -0500
committercarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2022-05-13 12:30:25 -0500
commitbd5fce65c60ae83f37d0a46bac4e09e9fd30b2c2 (patch)
treee7a37ca5fc13b3efc60d94e1c979cae1dde08627 /src
parent0034bbca260bfa00798d70150970924221688ede (diff)
downloadrust-bd5fce65c60ae83f37d0a46bac4e09e9fd30b2c2.tar.gz
rust-bd5fce65c60ae83f37d0a46bac4e09e9fd30b2c2.zip
Rustc changes for permissive provenance
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/consts/miri_unleashed/ptr_arith.rs2
-rw-r--r--src/test/ui/consts/miri_unleashed/ptr_arith.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/miri_unleashed/ptr_arith.rs b/src/test/ui/consts/miri_unleashed/ptr_arith.rs
index 22314160c5e..2beb531cc68 100644
--- a/src/test/ui/consts/miri_unleashed/ptr_arith.rs
+++ b/src/test/ui/consts/miri_unleashed/ptr_arith.rs
@@ -14,7 +14,7 @@ static CMP: () = {
 static PTR_INT_CAST: () = {
     let x = &0 as *const _ as usize;
     //~^ ERROR could not evaluate static initializer
-    //~| unable to turn pointer into raw bytes
+    //~| "exposing pointers" needs an rfc before being allowed inside constants
     let _v = x == x;
 };
 
diff --git a/src/test/ui/consts/miri_unleashed/ptr_arith.stderr b/src/test/ui/consts/miri_unleashed/ptr_arith.stderr
index 2764d10348a..61d34e2e35d 100644
--- a/src/test/ui/consts/miri_unleashed/ptr_arith.stderr
+++ b/src/test/ui/consts/miri_unleashed/ptr_arith.stderr
@@ -8,7 +8,7 @@ error[E0080]: could not evaluate static initializer
   --> $DIR/ptr_arith.rs:15:13
    |
 LL |     let x = &0 as *const _ as usize;
-   |             ^^^^^^^^^^^^^^^^^^^^^^^ unable to turn pointer into raw bytes
+   |             ^^^^^^^^^^^^^^^^^^^^^^^ "exposing pointers" needs an rfc before being allowed inside constants
 
 error[E0080]: could not evaluate static initializer
   --> $DIR/ptr_arith.rs:23:14