@@ -13,7 +13,6 @@ use crate::ty::visit::{TypeVisitable, TypeVisitableExt, TypeVisitor};
1313use crate :: ty:: { self , List , Ty , TyCtxt } ;
1414use crate :: ty:: { AdtDef , InstanceDef , ScalarInt , UserTypeAnnotationIndex } ;
1515use crate :: ty:: { GenericArg , InternalSubsts , SubstsRef } ;
16- use core:: alloc:: GlobalCoAllocMeta ;
1716
1817use rustc_data_structures:: captures:: Captures ;
1918use rustc_errors:: ErrorGuaranteed ;
@@ -35,6 +34,7 @@ use rustc_span::{Span, DUMMY_SP};
3534
3635use either:: Either ;
3736
37+ use std:: alloc:: { Allocator , Global } ;
3838use std:: borrow:: Cow ;
3939use std:: fmt:: { self , Debug , Display , Formatter , Write } ;
4040use std:: ops:: { ControlFlow , Index , IndexMut } ;
@@ -3082,7 +3082,10 @@ mod size_asserts {
30823082 use super :: * ;
30833083 use rustc_data_structures:: static_assert_size;
30843084 // tidy-alphabetical-start
3085- static_assert_size ! ( BasicBlockData <' _>, 144 + mem:: size_of:: <GlobalCoAllocMeta >( ) ) ;
3085+ static_assert_size ! (
3086+ BasicBlockData <' _>,
3087+ 144 + mem:: size_of:: <<Global as Allocator >:: CoAllocMeta >( )
3088+ ) ;
30863089 static_assert_size ! ( LocalDecl <' _>, 40 ) ;
30873090 static_assert_size ! ( Statement <' _>, 32 ) ;
30883091 static_assert_size ! ( StatementKind <' _>, 16 ) ;
0 commit comments