@@ -510,7 +510,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
510
510
let ty = self . monomorphize ( ty) ;
511
511
let drop_fn = Instance :: resolve_drop_in_place ( bx. tcx ( ) , ty) ;
512
512
513
- if let ty:: InstanceDef :: DropGlue ( _, None ) = drop_fn. def {
513
+ if let ty:: InstanceKind :: DropGlue ( _, None ) = drop_fn. def {
514
514
// we don't actually need to drop anything.
515
515
return helper. funclet_br ( self , bx, target, mergeable_succ) ;
516
516
}
@@ -541,7 +541,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
541
541
// \-------/
542
542
//
543
543
let virtual_drop = Instance {
544
- def : ty:: InstanceDef :: Virtual ( drop_fn. def_id ( ) , 0 ) , // idx 0: the drop function
544
+ def : ty:: InstanceKind :: Virtual ( drop_fn. def_id ( ) , 0 ) , // idx 0: the drop function
545
545
args : drop_fn. args ,
546
546
} ;
547
547
debug ! ( "ty = {:?}" , ty) ;
@@ -583,7 +583,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
583
583
//
584
584
// SO THEN WE CAN USE THE ABOVE CODE.
585
585
let virtual_drop = Instance {
586
- def : ty:: InstanceDef :: Virtual ( drop_fn. def_id ( ) , 0 ) , // idx 0: the drop function
586
+ def : ty:: InstanceKind :: Virtual ( drop_fn. def_id ( ) , 0 ) , // idx 0: the drop function
587
587
args : drop_fn. args ,
588
588
} ;
589
589
debug ! ( "ty = {:?}" , ty) ;
@@ -855,7 +855,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
855
855
let def = instance. map ( |i| i. def ) ;
856
856
857
857
if let Some (
858
- ty:: InstanceDef :: DropGlue ( _, None ) | ty:: InstanceDef :: AsyncDropGlueCtorShim ( _, None ) ,
858
+ ty:: InstanceKind :: DropGlue ( _, None ) | ty:: InstanceKind :: AsyncDropGlueCtorShim ( _, None ) ,
859
859
) = def
860
860
{
861
861
// Empty drop glue; a no-op.
@@ -871,7 +871,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
871
871
872
872
// Handle intrinsics old codegen wants Expr's for, ourselves.
873
873
let intrinsic = match def {
874
- Some ( ty:: InstanceDef :: Intrinsic ( def_id) ) => Some ( bx. tcx ( ) . intrinsic ( def_id) . unwrap ( ) ) ,
874
+ Some ( ty:: InstanceKind :: Intrinsic ( def_id) ) => Some ( bx. tcx ( ) . intrinsic ( def_id) . unwrap ( ) ) ,
875
875
_ => None ,
876
876
} ;
877
877
@@ -1026,7 +1026,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1026
1026
' make_args: for ( i, arg) in first_args. iter ( ) . enumerate ( ) {
1027
1027
let mut op = self . codegen_operand ( bx, & arg. node ) ;
1028
1028
1029
- if let ( 0 , Some ( ty:: InstanceDef :: Virtual ( _, idx) ) ) = ( i, def) {
1029
+ if let ( 0 , Some ( ty:: InstanceKind :: Virtual ( _, idx) ) ) = ( i, def) {
1030
1030
match op. val {
1031
1031
Pair ( data_ptr, meta) => {
1032
1032
// In the case of Rc<Self>, we need to explicitly pass a
0 commit comments