diff --git a/tests/meta.rs b/tests/meta.rs
index 0c573ccda..31caf6b4d 100644
--- a/tests/meta.rs
+++ b/tests/meta.rs
@@ -93,24 +93,25 @@ fn alignment() {
fn size() {
macro_rules! assert_size {
($t:ty, $size:literal, $opt_size:literal) => {
- assert_eq!(
- ::core::mem::size_of::<$t>(),
- $size,
- concat!("size of `{}` used to be ", $size),
+ assert!(
+ ::core::mem::size_of::<$t>() <= $size,
+ concat!("size of `{}` used to be ", $size, ", but is now {}"),
stringify!($t),
+ ::core::mem::size_of::<$t>(),
);
- assert_eq!(
- ::core::mem::size_of::