From 5f972d1cbf6c7c080bb66e10df28db808e57e8c5 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 7 Aug 2025 09:16:35 -0700 Subject: [PATCH] Update semver tests for 1.89 This updates the tests where messages have changed in 1.89. --- src/doc/src/reference/semver.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index 7b1d67a81..391b19410 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -577,7 +577,7 @@ fn main() { let p = Packed { a: 1, b: 2 }; // Some assumption about the size of the type. // Without `packed`, this fails since the size is 4. - const _: () = assert!(std::mem::size_of::() == 3); // Error: evaluation of constant value failed + const _: () = assert!(std::mem::size_of::() == 3); // Error: assertion failed } ``` @@ -696,7 +696,7 @@ fn main() { let p = Packed { a: 1, b: 2 }; // Some assumption about the size of the type. // The alignment has changed from 8 to 4. - const _: () = assert!(std::mem::align_of::() == 8); // Error: evaluation of constant value failed + const _: () = assert!(std::mem::align_of::() == 8); // Error: assertion failed } ``` @@ -734,7 +734,7 @@ fn main() { let p = Packed { a: 1, b: 2 }; // Some assumption about the size of the type. // The alignment has changed from 8 to 4. - const _: () = assert!(std::mem::align_of::() == 8); // Error: evaluation of constant value failed + const _: () = assert!(std::mem::align_of::() == 8); // Error: assertion failed } ```