@@ -2468,7 +2468,7 @@ pub struct ForeignMod {
2468
2468
/// semantically by Rust.
2469
2469
pub unsafety : Unsafe ,
2470
2470
pub abi : Option < StrLit > ,
2471
- pub items : Vec < P < ForeignItem > > ,
2471
+ pub items : ThinVec < P < ForeignItem > > ,
2472
2472
}
2473
2473
2474
2474
#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -2786,7 +2786,7 @@ pub struct Trait {
2786
2786
pub is_auto : IsAuto ,
2787
2787
pub generics : Generics ,
2788
2788
pub bounds : GenericBounds ,
2789
- pub items : Vec < P < AssocItem > > ,
2789
+ pub items : ThinVec < P < AssocItem > > ,
2790
2790
}
2791
2791
2792
2792
/// The location of a where clause on a `TyAlias` (`Span`) and whether there was
@@ -2834,7 +2834,7 @@ pub struct Impl {
2834
2834
/// The trait being implemented, if any.
2835
2835
pub of_trait : Option < TraitRef > ,
2836
2836
pub self_ty : P < Ty > ,
2837
- pub items : Vec < P < AssocItem > > ,
2837
+ pub items : ThinVec < P < AssocItem > > ,
2838
2838
}
2839
2839
2840
2840
#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -3081,7 +3081,7 @@ mod size_asserts {
3081
3081
static_assert_size ! ( GenericArg , 24 ) ;
3082
3082
static_assert_size ! ( GenericBound , 56 ) ;
3083
3083
static_assert_size ! ( Generics , 40 ) ;
3084
- static_assert_size ! ( Impl , 152 ) ;
3084
+ static_assert_size ! ( Impl , 136 ) ;
3085
3085
static_assert_size ! ( Item , 152 ) ;
3086
3086
static_assert_size ! ( ItemKind , 80 ) ;
3087
3087
static_assert_size ! ( Lit , 48 ) ;
0 commit comments