@@ -2182,14 +2182,14 @@ rustc_data_structures::static_assert_size!(GenericArg, 80);
21822182
21832183#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
21842184pub ( 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 > > } ,
21872187}
21882188
21892189// `GenericArgs` is in every `PathSegment`, so its size can significantly
21902190// affect rustdoc's memory usage.
21912191#[ 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 ) ;
21932193
21942194#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
21952195pub ( crate ) struct PathSegment {
@@ -2200,7 +2200,7 @@ pub(crate) struct PathSegment {
22002200// `PathSegment` usually occurs multiple times in every `Path`, so its size can
22012201// significantly affect rustdoc's memory usage.
22022202#[ 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 ) ;
22042204
22052205#[ derive( Clone , Debug ) ]
22062206pub ( crate ) struct Typedef {
0 commit comments