Skip to content

Commit 738c75a

Browse files
committed
Comment out size improvements from compiler change
1 parent 27ffd74 commit 738c75a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/integration/meta.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,21 @@ fn size() {
9696
assert_eq!(
9797
::core::mem::size_of::<$t>(),
9898
$size,
99-
concat!("size of `{}` was ", $size),
99+
concat!("size of `{}` used to be ", $size),
100100
stringify!($t),
101101
);
102102
assert_eq!(
103103
::core::mem::size_of::<Option<$t>>(),
104104
$opt_size,
105-
concat!("size of `Option<{}>` was ", $opt_size),
105+
concat!("size of `Option<{}>` used to be ", $opt_size),
106106
stringify!($t),
107107
);
108108
};
109109
}
110110

111+
// A couple structs have their size decrease from 56 to 48 thanks to a compiler change. This
112+
// change looks like it will land in 1.64 (2022-09-22).
113+
111114
assert_size!(Date, 4, 8);
112115
assert_size!(Duration, 16, 16);
113116
assert_size!(OffsetDateTime, 16, 16);
@@ -147,10 +150,10 @@ fn size() {
147150
assert_size!(Parsed, 32, 32);
148151
assert_size!(Month, 1, 1);
149152
assert_size!(Weekday, 1, 1);
150-
assert_size!(Error, 56, 56);
153+
// assert_size!(Error, 56, 56);
151154
assert_size!(error::Format, 24, 24);
152155
assert_size!(error::InvalidFormatDescription, 40, 40);
153-
assert_size!(error::Parse, 56, 56);
156+
// assert_size!(error::Parse, 56, 56);
154157
assert_size!(error::ParseFromDescription, 16, 24);
155158
assert_size!(error::TryFromParsed, 48, 48);
156159
assert_size!(Component, 5, 5);

0 commit comments

Comments
 (0)