@@ -2435,7 +2435,7 @@ pub struct ForeignMod {
2435
2435
/// semantically by Rust.
2436
2436
pub unsafety : Unsafe ,
2437
2437
pub abi : Option < StrLit > ,
2438
- pub items : Vec < P < ForeignItem > > ,
2438
+ pub items : ThinVec < P < ForeignItem > > ,
2439
2439
}
2440
2440
2441
2441
#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -2753,7 +2753,7 @@ pub struct Trait {
2753
2753
pub is_auto : IsAuto ,
2754
2754
pub generics : Generics ,
2755
2755
pub bounds : GenericBounds ,
2756
- pub items : Vec < P < AssocItem > > ,
2756
+ pub items : ThinVec < P < AssocItem > > ,
2757
2757
}
2758
2758
2759
2759
/// The location of a where clause on a `TyAlias` (`Span`) and whether there was
@@ -2801,7 +2801,7 @@ pub struct Impl {
2801
2801
/// The trait being implemented, if any.
2802
2802
pub of_trait : Option < TraitRef > ,
2803
2803
pub self_ty : P < Ty > ,
2804
- pub items : Vec < P < AssocItem > > ,
2804
+ pub items : ThinVec < P < AssocItem > > ,
2805
2805
}
2806
2806
2807
2807
#[ derive( Clone , Encodable , Decodable , Debug ) ]
@@ -3047,7 +3047,7 @@ mod size_asserts {
3047
3047
static_assert_size ! ( ForeignItemKind , 24 ) ;
3048
3048
static_assert_size ! ( GenericBound , 56 ) ;
3049
3049
static_assert_size ! ( Generics , 40 ) ;
3050
- static_assert_size ! ( Impl , 152 ) ;
3050
+ static_assert_size ! ( Impl , 136 ) ;
3051
3051
static_assert_size ! ( Item , 152 ) ;
3052
3052
static_assert_size ! ( ItemKind , 80 ) ;
3053
3053
static_assert_size ! ( Lit , 48 ) ;
0 commit comments