@@ -2182,14 +2182,14 @@ rustc_data_structures::static_assert_size!(GenericArg, 80);
2182
2182
2183
2183
#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
2184
2184
pub ( crate ) enum GenericArgs {
2185
- AngleBracketed { args : Vec < GenericArg > , bindings : ThinVec < TypeBinding > } ,
2186
- Parenthesized { inputs : Vec < Type > , output : Option < Box < Type > > } ,
2185
+ AngleBracketed { args : Box < [ GenericArg ] > , bindings : ThinVec < TypeBinding > } ,
2186
+ Parenthesized { inputs : Box < [ Type ] > , output : Option < Box < Type > > } ,
2187
2187
}
2188
2188
2189
2189
// `GenericArgs` is in every `PathSegment`, so its size can significantly
2190
2190
// affect rustdoc's memory usage.
2191
2191
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
2192
- rustc_data_structures:: static_assert_size!( GenericArgs , 40 ) ;
2192
+ rustc_data_structures:: static_assert_size!( GenericArgs , 32 ) ;
2193
2193
2194
2194
#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
2195
2195
pub ( crate ) struct PathSegment {
@@ -2200,7 +2200,7 @@ pub(crate) struct PathSegment {
2200
2200
// `PathSegment` usually occurs multiple times in every `Path`, so its size can
2201
2201
// significantly affect rustdoc's memory usage.
2202
2202
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
2203
- rustc_data_structures:: static_assert_size!( PathSegment , 48 ) ;
2203
+ rustc_data_structures:: static_assert_size!( PathSegment , 40 ) ;
2204
2204
2205
2205
#[ derive( Clone , Debug ) ]
2206
2206
pub ( crate ) struct Typedef {
0 commit comments