@@ -2254,8 +2254,8 @@ impl GenericArg {
22542254
22552255#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
22562256pub ( crate ) enum GenericArgs {
2257- AngleBracketed { args : Box < [ GenericArg ] > , constraints : ThinVec < AssocItemConstraint > } ,
2258- Parenthesized { inputs : Box < [ Type ] > , output : Option < Box < Type > > } ,
2257+ AngleBracketed { args : ThinVec < GenericArg > , constraints : ThinVec < AssocItemConstraint > } ,
2258+ Parenthesized { inputs : ThinVec < Type > , output : Option < Box < Type > > } ,
22592259}
22602260
22612261impl GenericArgs {
@@ -2279,7 +2279,7 @@ impl GenericArgs {
22792279 assoc : PathSegment {
22802280 name : sym:: Output ,
22812281 args : GenericArgs :: AngleBracketed {
2282- args : Vec :: new ( ) . into_boxed_slice ( ) ,
2282+ args : ThinVec :: new ( ) ,
22832283 constraints : ThinVec :: new ( ) ,
22842284 } ,
22852285 } ,
@@ -2596,12 +2596,12 @@ mod size_asserts {
25962596 static_assert_size ! ( Crate , 56 ) ; // frequently moved by-value
25972597 static_assert_size ! ( DocFragment , 32 ) ;
25982598 static_assert_size ! ( GenericArg , 32 ) ;
2599- static_assert_size ! ( GenericArgs , 32 ) ;
2599+ static_assert_size ! ( GenericArgs , 24 ) ;
26002600 static_assert_size ! ( GenericParamDef , 40 ) ;
26012601 static_assert_size ! ( Generics , 16 ) ;
26022602 static_assert_size ! ( Item , 48 ) ;
26032603 static_assert_size ! ( ItemKind , 48 ) ;
2604- static_assert_size ! ( PathSegment , 40 ) ;
2604+ static_assert_size ! ( PathSegment , 32 ) ;
26052605 static_assert_size ! ( Type , 32 ) ;
26062606 // tidy-alphabetical-end
26072607}
0 commit comments