@@ -26,6 +26,7 @@ pub use UnsafeSource::*;
2626use crate :: ptr:: P ;
2727use crate :: token:: { self , CommentKind , Delimiter } ;
2828use crate :: tokenstream:: { DelimSpan , LazyAttrTokenStream , TokenStream } ;
29+ use core:: alloc:: GlobalCoAllocMeta ;
2930use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
3031use rustc_data_structures:: stack:: ensure_sufficient_stack;
3132use rustc_data_structures:: sync:: Lrc ;
@@ -37,7 +38,6 @@ use rustc_span::{Span, DUMMY_SP};
3738use std:: fmt;
3839use std:: mem;
3940use thin_vec:: { thin_vec, ThinVec } ;
40-
4141/// A "Label" is an identifier of some point in sources,
4242/// e.g. in the following code:
4343///
@@ -3112,26 +3112,26 @@ mod size_asserts {
31123112 static_assert_size ! ( AssocItem , 104 ) ;
31133113 static_assert_size ! ( AssocItemKind , 32 ) ;
31143114 static_assert_size ! ( Attribute , 32 ) ;
3115- static_assert_size ! ( Block , 48 ) ;
3116- static_assert_size ! ( Expr , 72 ) ;
3117- static_assert_size ! ( ExprKind , 40 ) ;
3118- static_assert_size ! ( Fn , 184 ) ;
3115+ static_assert_size ! ( Block , 48 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3116+ static_assert_size ! ( Expr , 72 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3117+ static_assert_size ! ( ExprKind , 40 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3118+ static_assert_size ! ( Fn , 184 + 2 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31193119 static_assert_size ! ( ForeignItem , 96 ) ;
31203120 static_assert_size ! ( ForeignItemKind , 24 ) ;
31213121 static_assert_size ! ( GenericArg , 24 ) ;
3122- static_assert_size ! ( GenericBound , 72 ) ;
3123- static_assert_size ! ( Generics , 72 ) ;
3124- static_assert_size ! ( Impl , 184 ) ;
3125- static_assert_size ! ( Item , 184 ) ;
3126- static_assert_size ! ( ItemKind , 112 ) ;
3122+ static_assert_size ! ( GenericBound , 72 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3123+ static_assert_size ! ( Generics , 72 + 2 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3124+ static_assert_size ! ( Impl , 184 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3125+ static_assert_size ! ( Item , 184 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3126+ static_assert_size ! ( ItemKind , 112 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31273127 static_assert_size ! ( LitKind , 24 ) ;
31283128 static_assert_size ! ( Local , 72 ) ;
31293129 static_assert_size ! ( MetaItemLit , 40 ) ;
31303130 static_assert_size ! ( Param , 40 ) ;
3131- static_assert_size ! ( Pat , 88 ) ;
3131+ static_assert_size ! ( Pat , 88 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31323132 static_assert_size ! ( Path , 24 ) ;
31333133 static_assert_size ! ( PathSegment , 24 ) ;
3134- static_assert_size ! ( PatKind , 64 ) ;
3134+ static_assert_size ! ( PatKind , 64 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31353135 static_assert_size ! ( Stmt , 32 ) ;
31363136 static_assert_size ! ( StmtKind , 16 ) ;
31373137 static_assert_size ! ( Ty , 64 ) ;
0 commit comments