]> git.lizzy.rs Git - rust.git/commitdiff
fix 32bit err
authorAndreas Liljeqvist <bonega@gmail.com>
Sun, 22 Aug 2021 20:45:51 +0000 (22:45 +0200)
committerAndreas Liljeqvist <bonega@gmail.com>
Sun, 22 Aug 2021 20:45:51 +0000 (22:45 +0200)
src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr

index e44f324945481e2f84cc695315d701aecd25078e..01403a61e5e24d10c90b33390829477a77ad0ae1 100644 (file)
@@ -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) {