]> git.lizzy.rs Git - rust.git/commitdiff
fix other affected tests
authorRalf Jung <post@ralfj.de>
Mon, 12 Nov 2018 11:19:35 +0000 (12:19 +0100)
committerRalf Jung <post@ralfj.de>
Thu, 15 Nov 2018 09:59:42 +0000 (10:59 +0100)
src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr

index 03de0efd07362b5ea13527dea76821c4d526a7e6..a4c228416147e6d2a634e513d8e79b2212f04d03 100644 (file)
@@ -10,7 +10,7 @@ error[E0080]: it is undefined behavior to use this value
   --> $DIR/issue-52023-array-size-pointer-cast.rs:12:17
    |
 LL |     let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
-   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain bits
+   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain (non-pointer) bytes
    |
    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior