@@ -2468,7 +2468,7 @@ pub struct ForeignMod {
24682468 /// semantically by Rust.
24692469 pub unsafety : Unsafe ,
24702470 pub abi : Option < StrLit > ,
2471- pub items : Vec < P < ForeignItem > > ,
2471+ pub items : ThinVec < P < ForeignItem > > ,
24722472}
24732473
24742474#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -2786,7 +2786,7 @@ pub struct Trait {
27862786 pub is_auto : IsAuto ,
27872787 pub generics : Generics ,
27882788 pub bounds : GenericBounds ,
2789- pub items : Vec < P < AssocItem > > ,
2789+ pub items : ThinVec < P < AssocItem > > ,
27902790}
27912791
27922792/// The location of a where clause on a `TyAlias` (`Span`) and whether there was
@@ -2834,7 +2834,7 @@ pub struct Impl {
28342834 /// The trait being implemented, if any.
28352835 pub of_trait : Option < TraitRef > ,
28362836 pub self_ty : P < Ty > ,
2837- pub items : Vec < P < AssocItem > > ,
2837+ pub items : ThinVec < P < AssocItem > > ,
28382838}
28392839
28402840#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -3081,7 +3081,7 @@ mod size_asserts {
30813081 static_assert_size ! ( GenericArg , 24 ) ;
30823082 static_assert_size ! ( GenericBound , 56 ) ;
30833083 static_assert_size ! ( Generics , 40 ) ;
3084- static_assert_size ! ( Impl , 152 ) ;
3084+ static_assert_size ! ( Impl , 136 ) ;
30853085 static_assert_size ! ( Item , 152 ) ;
30863086 static_assert_size ! ( ItemKind , 80 ) ;
30873087 static_assert_size ! ( Lit , 48 ) ;
0 commit comments