@@ -25,6 +25,7 @@ pub use UnsafeSource::*;
2525use crate :: ptr:: P ;
2626use crate :: token:: { self , CommentKind , Delimiter } ;
2727use crate :: tokenstream:: { DelimSpan , LazyAttrTokenStream , TokenStream } ;
28+ use core:: alloc:: GlobalCoAllocMeta ;
2829use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
2930use rustc_data_structures:: stack:: ensure_sufficient_stack;
3031use rustc_data_structures:: sync:: Lrc ;
@@ -36,7 +37,6 @@ use rustc_span::{Span, DUMMY_SP};
3637use std:: fmt;
3738use std:: mem;
3839use thin_vec:: { thin_vec, ThinVec } ;
39-
4040/// A "Label" is an identifier of some point in sources,
4141/// e.g. in the following code:
4242///
@@ -3084,26 +3084,26 @@ mod size_asserts {
30843084 static_assert_size ! ( AssocItem , 104 ) ;
30853085 static_assert_size ! ( AssocItemKind , 32 ) ;
30863086 static_assert_size ! ( Attribute , 32 ) ;
3087- static_assert_size ! ( Block , 48 ) ;
3088- static_assert_size ! ( Expr , 72 ) ;
3089- static_assert_size ! ( ExprKind , 40 ) ;
3090- static_assert_size ! ( Fn , 184 ) ;
3087+ static_assert_size ! ( Block , 48 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3088+ static_assert_size ! ( Expr , 72 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3089+ static_assert_size ! ( ExprKind , 40 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3090+ static_assert_size ! ( Fn , 184 + 2 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
30913091 static_assert_size ! ( ForeignItem , 96 ) ;
30923092 static_assert_size ! ( ForeignItemKind , 24 ) ;
30933093 static_assert_size ! ( GenericArg , 24 ) ;
3094- static_assert_size ! ( GenericBound , 72 ) ;
3095- static_assert_size ! ( Generics , 72 ) ;
3096- static_assert_size ! ( Impl , 184 ) ;
3097- static_assert_size ! ( Item , 184 ) ;
3098- static_assert_size ! ( ItemKind , 112 ) ;
3094+ static_assert_size ! ( GenericBound , 72 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3095+ static_assert_size ! ( Generics , 72 + 2 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3096+ static_assert_size ! ( Impl , 184 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3097+ static_assert_size ! ( Item , 184 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3098+ static_assert_size ! ( ItemKind , 112 + 3 * mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
30993099 static_assert_size ! ( LitKind , 24 ) ;
31003100 static_assert_size ! ( Local , 72 ) ;
31013101 static_assert_size ! ( MetaItemLit , 40 ) ;
31023102 static_assert_size ! ( Param , 40 ) ;
3103- static_assert_size ! ( Pat , 88 ) ;
3103+ static_assert_size ! ( Pat , 88 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31043104 static_assert_size ! ( Path , 24 ) ;
31053105 static_assert_size ! ( PathSegment , 24 ) ;
3106- static_assert_size ! ( PatKind , 64 ) ;
3106+ static_assert_size ! ( PatKind , 64 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
31073107 static_assert_size ! ( Stmt , 32 ) ;
31083108 static_assert_size ! ( StmtKind , 16 ) ;
31093109 static_assert_size ! ( Ty , 64 ) ;
0 commit comments