@@ -2497,7 +2497,7 @@ pub struct ForeignMod {
24972497 /// semantically by Rust.
24982498 pub unsafety : Unsafe ,
24992499 pub abi : Option < StrLit > ,
2500- pub items : Vec < P < ForeignItem > > ,
2500+ pub items : ThinVec < P < ForeignItem > > ,
25012501}
25022502
25032503#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -2826,7 +2826,7 @@ pub struct Trait {
28262826 pub is_auto : IsAuto ,
28272827 pub generics : Generics ,
28282828 pub bounds : GenericBounds ,
2829- pub items : Vec < P < AssocItem > > ,
2829+ pub items : ThinVec < P < AssocItem > > ,
28302830}
28312831
28322832/// The location of a where clause on a `TyAlias` (`Span`) and whether there was
@@ -2874,7 +2874,7 @@ pub struct Impl {
28742874 /// The trait being implemented, if any.
28752875 pub of_trait : Option < TraitRef > ,
28762876 pub self_ty : P < Ty > ,
2877- pub items : Vec < P < AssocItem > > ,
2877+ pub items : ThinVec < P < AssocItem > > ,
28782878}
28792879
28802880#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -3121,7 +3121,7 @@ mod size_asserts {
31213121 static_assert_size ! ( GenericArg , 24 ) ;
31223122 static_assert_size ! ( GenericBound , 56 ) ;
31233123 static_assert_size ! ( Generics , 40 ) ;
3124- static_assert_size ! ( Impl , 152 ) ;
3124+ static_assert_size ! ( Impl , 136 ) ;
31253125 static_assert_size ! ( Item , 152 ) ;
31263126 static_assert_size ! ( ItemKind , 80 ) ;
31273127 static_assert_size ! ( LitKind , 24 ) ;
0 commit comments