@@ -2254,8 +2254,8 @@ impl GenericArg {
2254
2254
2255
2255
#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
2256
2256
pub ( 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 > > } ,
2259
2259
}
2260
2260
2261
2261
impl GenericArgs {
@@ -2279,7 +2279,7 @@ impl GenericArgs {
2279
2279
assoc : PathSegment {
2280
2280
name : sym:: Output ,
2281
2281
args : GenericArgs :: AngleBracketed {
2282
- args : Vec :: new ( ) . into_boxed_slice ( ) ,
2282
+ args : ThinVec :: new ( ) ,
2283
2283
constraints : ThinVec :: new ( ) ,
2284
2284
} ,
2285
2285
} ,
@@ -2596,12 +2596,12 @@ mod size_asserts {
2596
2596
static_assert_size ! ( Crate , 56 ) ; // frequently moved by-value
2597
2597
static_assert_size ! ( DocFragment , 32 ) ;
2598
2598
static_assert_size ! ( GenericArg , 32 ) ;
2599
- static_assert_size ! ( GenericArgs , 32 ) ;
2599
+ static_assert_size ! ( GenericArgs , 24 ) ;
2600
2600
static_assert_size ! ( GenericParamDef , 40 ) ;
2601
2601
static_assert_size ! ( Generics , 16 ) ;
2602
2602
static_assert_size ! ( Item , 48 ) ;
2603
2603
static_assert_size ! ( ItemKind , 48 ) ;
2604
- static_assert_size ! ( PathSegment , 40 ) ;
2604
+ static_assert_size ! ( PathSegment , 32 ) ;
2605
2605
static_assert_size ! ( Type , 32 ) ;
2606
2606
// tidy-alphabetical-end
2607
2607
}
0 commit comments