@@ -26,7 +26,6 @@ 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 ;
30
29
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
31
30
use rustc_data_structures:: stack:: ensure_sufficient_stack;
32
31
use rustc_data_structures:: sync:: Lrc ;
@@ -35,6 +34,8 @@ use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
35
34
use rustc_span:: source_map:: { respan, Spanned } ;
36
35
use rustc_span:: symbol:: { kw, sym, Ident , Symbol } ;
37
36
use rustc_span:: { Span , DUMMY_SP } ;
37
+ use std:: alloc:: Allocator ;
38
+ use std:: alloc:: Global ;
38
39
use std:: fmt;
39
40
use std:: mem;
40
41
use thin_vec:: { thin_vec, ThinVec } ;
@@ -3112,26 +3113,26 @@ mod size_asserts {
3112
3113
static_assert_size ! ( AssocItem , 104 ) ;
3113
3114
static_assert_size ! ( AssocItemKind , 32 ) ;
3114
3115
static_assert_size ! ( Attribute , 32 ) ;
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 >( ) ) ;
3116
+ static_assert_size ! ( Block , 48 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3117
+ static_assert_size ! ( Expr , 72 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3118
+ static_assert_size ! ( ExprKind , 40 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3119
+ static_assert_size ! ( Fn , 184 + 2 * mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3119
3120
static_assert_size ! ( ForeignItem , 96 ) ;
3120
3121
static_assert_size ! ( ForeignItemKind , 24 ) ;
3121
3122
static_assert_size ! ( GenericArg , 24 ) ;
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 >( ) ) ;
3123
+ static_assert_size ! ( GenericBound , 72 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3124
+ static_assert_size ! ( Generics , 72 + 2 * mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3125
+ static_assert_size ! ( Impl , 184 + 3 * mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3126
+ static_assert_size ! ( Item , 184 + 3 * mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3127
+ static_assert_size ! ( ItemKind , 112 + 3 * mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3127
3128
static_assert_size ! ( LitKind , 24 ) ;
3128
3129
static_assert_size ! ( Local , 72 ) ;
3129
3130
static_assert_size ! ( MetaItemLit , 40 ) ;
3130
3131
static_assert_size ! ( Param , 40 ) ;
3131
- static_assert_size ! ( Pat , 88 + mem:: size_of:: <GlobalCoAllocMeta >( ) ) ;
3132
+ static_assert_size ! ( Pat , 88 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3132
3133
static_assert_size ! ( Path , 24 ) ;
3133
3134
static_assert_size ! ( PathSegment , 24 ) ;
3134
- static_assert_size ! ( PatKind , 64 + mem:: size_of:: <GlobalCoAllocMeta >( ) ) ;
3135
+ static_assert_size ! ( PatKind , 64 + mem:: size_of:: << Global as Allocator > :: CoAllocMeta >( ) ) ;
3135
3136
static_assert_size ! ( Stmt , 32 ) ;
3136
3137
static_assert_size ! ( StmtKind , 16 ) ;
3137
3138
static_assert_size ! ( Ty , 64 ) ;
0 commit comments