@@ -2435,7 +2435,7 @@ pub struct ForeignMod {
24352435 /// semantically by Rust.
24362436 pub unsafety : Unsafe ,
24372437 pub abi : Option < StrLit > ,
2438- pub items : Vec < P < ForeignItem > > ,
2438+ pub items : ThinVec < P < ForeignItem > > ,
24392439}
24402440
24412441#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -2753,7 +2753,7 @@ pub struct Trait {
27532753 pub is_auto : IsAuto ,
27542754 pub generics : Generics ,
27552755 pub bounds : GenericBounds ,
2756- pub items : Vec < P < AssocItem > > ,
2756+ pub items : ThinVec < P < AssocItem > > ,
27572757}
27582758
27592759/// The location of a where clause on a `TyAlias` (`Span`) and whether there was
@@ -2801,7 +2801,7 @@ pub struct Impl {
28012801 /// The trait being implemented, if any.
28022802 pub of_trait : Option < TraitRef > ,
28032803 pub self_ty : P < Ty > ,
2804- pub items : Vec < P < AssocItem > > ,
2804+ pub items : ThinVec < P < AssocItem > > ,
28052805}
28062806
28072807#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -3047,7 +3047,7 @@ mod size_asserts {
30473047 static_assert_size ! ( ForeignItemKind , 24 ) ;
30483048 static_assert_size ! ( GenericBound , 56 ) ;
30493049 static_assert_size ! ( Generics , 40 ) ;
3050- static_assert_size ! ( Impl , 152 ) ;
3050+ static_assert_size ! ( Impl , 136 ) ;
30513051 static_assert_size ! ( Item , 152 ) ;
30523052 static_assert_size ! ( ItemKind , 80 ) ;
30533053 static_assert_size ! ( Lit , 48 ) ;
0 commit comments