@@ -13,7 +13,6 @@ use crate::ty::visit::{TypeVisitable, TypeVisitor};
1313use crate :: ty:: { self , ir, DefIdTree , 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 } ;
@@ -3078,7 +3078,10 @@ mod size_asserts {
30783078 use super :: * ;
30793079 use rustc_data_structures:: static_assert_size;
30803080 // tidy-alphabetical-start
3081- static_assert_size ! ( BasicBlockData <' _>, 144 + mem:: size_of:: <GlobalCoAllocMeta >( ) ) ;
3081+ static_assert_size ! (
3082+ BasicBlockData <' _>,
3083+ 144 + mem:: size_of:: <<Global as Allocator >:: CoAllocMeta >( )
3084+ ) ;
30823085 static_assert_size ! ( LocalDecl <' _>, 56 ) ;
30833086 static_assert_size ! ( Statement <' _>, 32 ) ;
30843087 static_assert_size ! ( StatementKind <' _>, 16 ) ;
0 commit comments