@@ -96,18 +96,21 @@ fn size() {
96
96
assert_eq!(
97
97
:: core:: mem:: size_of:: <$t>( ) ,
98
98
$size,
99
- concat!( "size of `{}` was " , $size) ,
99
+ concat!( "size of `{}` used to be " , $size) ,
100
100
stringify!( $t) ,
101
101
) ;
102
102
assert_eq!(
103
103
:: core:: mem:: size_of:: <Option <$t>>( ) ,
104
104
$opt_size,
105
- concat!( "size of `Option<{}>` was " , $opt_size) ,
105
+ concat!( "size of `Option<{}>` used to be " , $opt_size) ,
106
106
stringify!( $t) ,
107
107
) ;
108
108
} ;
109
109
}
110
110
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
+
111
114
assert_size ! ( Date , 4 , 8 ) ;
112
115
assert_size ! ( Duration , 16 , 16 ) ;
113
116
assert_size ! ( OffsetDateTime , 16 , 16 ) ;
@@ -147,10 +150,10 @@ fn size() {
147
150
assert_size ! ( Parsed , 32 , 32 ) ;
148
151
assert_size ! ( Month , 1 , 1 ) ;
149
152
assert_size ! ( Weekday , 1 , 1 ) ;
150
- assert_size ! ( Error , 56 , 56 ) ;
153
+ // assert_size!(Error, 56, 56);
151
154
assert_size ! ( error:: Format , 24 , 24 ) ;
152
155
assert_size ! ( error:: InvalidFormatDescription , 40 , 40 ) ;
153
- assert_size ! ( error:: Parse , 56 , 56 ) ;
156
+ // assert_size!(error::Parse, 56, 56);
154
157
assert_size ! ( error:: ParseFromDescription , 16 , 24 ) ;
155
158
assert_size ! ( error:: TryFromParsed , 48 , 48 ) ;
156
159
assert_size ! ( Component , 5 , 5 ) ;
0 commit comments