about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Liljeqvist <bonega@gmail.com>2021-08-22 22:45:51 +0200
committerAndreas Liljeqvist <bonega@gmail.com>2021-08-22 22:45:51 +0200
commit1b4064f04a5d9f2ff910f448f65e3396502ff280 (patch)
treef36fbccca01326e85b9c4fff8f0cf6b7c26811b9
parent5a501f73ff753109c7e73d4981fe011633bd8e84 (diff)
downloadrust-1b4064f04a5d9f2ff910f448f65e3396502ff280.tar.gz
rust-1b4064f04a5d9f2ff910f448f65e3396502ff280.zip
fix 32bit err
-rw-r--r--src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr b/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr
index e44f3249454..01403a61e5e 100644
--- a/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr
+++ b/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr
@@ -52,7 +52,7 @@ error[E0080]: it is undefined behavior to use this value
   --> $DIR/ub-nonnull.rs:41:1
    |
 LL | const BAD_RANGE1: RestrictedRange1 = unsafe { RestrictedRange1(42) };
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range 10..=30
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range AllocationRange { start: 10, end: 30 }
    |
    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 4, align: 4) {