@@ -2246,8 +2246,8 @@ impl GenericArg {
22462246
22472247#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
22482248pub ( crate ) enum GenericArgs {
2249- AngleBracketed { args : Box < [ GenericArg ] > , constraints : ThinVec < AssocItemConstraint > } ,
2250- Parenthesized { inputs : Box < [ Type ] > , output : Option < Box < Type > > } ,
2249+ AngleBracketed { args : ThinVec < GenericArg > , constraints : ThinVec < AssocItemConstraint > } ,
2250+ Parenthesized { inputs : ThinVec < Type > , output : Option < Box < Type > > } ,
22512251}
22522252
22532253impl GenericArgs {
@@ -2271,7 +2271,7 @@ impl GenericArgs {
22712271 assoc : PathSegment {
22722272 name : sym:: Output ,
22732273 args : GenericArgs :: AngleBracketed {
2274- args : Vec :: new ( ) . into_boxed_slice ( ) ,
2274+ args : ThinVec :: new ( ) ,
22752275 constraints : ThinVec :: new ( ) ,
22762276 } ,
22772277 } ,
@@ -2588,12 +2588,12 @@ mod size_asserts {
25882588 static_assert_size ! ( Crate , 56 ) ; // frequently moved by-value
25892589 static_assert_size ! ( DocFragment , 32 ) ;
25902590 static_assert_size ! ( GenericArg , 32 ) ;
2591- static_assert_size ! ( GenericArgs , 32 ) ;
2591+ static_assert_size ! ( GenericArgs , 24 ) ;
25922592 static_assert_size ! ( GenericParamDef , 40 ) ;
25932593 static_assert_size ! ( Generics , 16 ) ;
25942594 static_assert_size ! ( Item , 48 ) ;
25952595 static_assert_size ! ( ItemKind , 48 ) ;
2596- static_assert_size ! ( PathSegment , 40 ) ;
2596+ static_assert_size ! ( PathSegment , 32 ) ;
25972597 static_assert_size ! ( Type , 32 ) ;
25982598 // tidy-alphabetical-end
25992599}
0 commit comments