@@ -26,6 +26,7 @@ pub use UnsafeSource::*;
26
26
use crate :: ptr:: P ;
27
27
use crate :: token:: { self , CommentKind , Delimiter } ;
28
28
use crate :: tokenstream:: { DelimSpan , LazyAttrTokenStream , TokenStream } ;
29
+ use core:: alloc:: GlobalCoAllocMeta ;
29
30
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
30
31
use rustc_data_structures:: stack:: ensure_sufficient_stack;
31
32
use rustc_data_structures:: sync:: Lrc ;
@@ -37,7 +38,6 @@ use rustc_span::{Span, DUMMY_SP};
37
38
use std:: fmt;
38
39
use std:: mem;
39
40
use thin_vec:: { thin_vec, ThinVec } ;
40
-
41
41
/// A "Label" is an identifier of some point in sources,
42
42
/// e.g. in the following code:
43
43
///
@@ -3112,26 +3112,26 @@ mod size_asserts {
3112
3112
static_assert_size ! ( AssocItem , 104 ) ;
3113
3113
static_assert_size ! ( AssocItemKind , 32 ) ;
3114
3114
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 > ( ) ) ;
3119
3119
static_assert_size ! ( ForeignItem , 96 ) ;
3120
3120
static_assert_size ! ( ForeignItemKind , 24 ) ;
3121
3121
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 > ( ) ) ;
3127
3127
static_assert_size ! ( LitKind , 24 ) ;
3128
3128
static_assert_size ! ( Local , 72 ) ;
3129
3129
static_assert_size ! ( MetaItemLit , 40 ) ;
3130
3130
static_assert_size ! ( Param , 40 ) ;
3131
- static_assert_size ! ( Pat , 88 ) ;
3131
+ static_assert_size ! ( Pat , 88 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3132
3132
static_assert_size ! ( Path , 24 ) ;
3133
3133
static_assert_size ! ( PathSegment , 24 ) ;
3134
- static_assert_size ! ( PatKind , 64 ) ;
3134
+ static_assert_size ! ( PatKind , 64 + mem :: size_of :: < GlobalCoAllocMeta > ( ) ) ;
3135
3135
static_assert_size ! ( Stmt , 32 ) ;
3136
3136
static_assert_size ! ( StmtKind , 16 ) ;
3137
3137
static_assert_size ! ( Ty , 64 ) ;
0 commit comments