@@ -399,7 +399,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
399
399
}
400
400
401
401
match instance. def {
402
- InstanceDef :: Intrinsic ( _) => {
402
+ InstanceKind :: Intrinsic ( _) => {
403
403
match crate :: intrinsics:: codegen_intrinsic_call (
404
404
fx,
405
405
instance,
@@ -412,7 +412,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
412
412
Err ( instance) => Some ( instance) ,
413
413
}
414
414
}
415
- InstanceDef :: DropGlue ( _, None ) | ty:: InstanceDef :: AsyncDropGlueCtorShim ( _, None ) => {
415
+ InstanceKind :: DropGlue ( _, None ) | ty:: InstanceKind :: AsyncDropGlueCtorShim ( _, None ) => {
416
416
// empty drop glue - a nop.
417
417
let dest = target. expect ( "Non terminating drop_in_place_real???" ) ;
418
418
let ret_block = fx. get_block ( dest) ;
@@ -494,7 +494,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
494
494
495
495
let ( func_ref, first_arg_override) = match instance {
496
496
// Trait object call
497
- Some ( Instance { def : InstanceDef :: Virtual ( _, idx) , .. } ) => {
497
+ Some ( Instance { def : InstanceKind :: Virtual ( _, idx) , .. } ) => {
498
498
if fx. clif_comments . enabled ( ) {
499
499
let nop_inst = fx. bcx . ins ( ) . nop ( ) ;
500
500
fx. add_comment (
@@ -598,7 +598,7 @@ pub(crate) fn codegen_drop<'tcx>(
598
598
let ty = drop_place. layout ( ) . ty ;
599
599
let drop_instance = Instance :: resolve_drop_in_place ( fx. tcx , ty) . polymorphize ( fx. tcx ) ;
600
600
601
- if let ty:: InstanceDef :: DropGlue ( _, None ) | ty:: InstanceDef :: AsyncDropGlueCtorShim ( _, None ) =
601
+ if let ty:: InstanceKind :: DropGlue ( _, None ) | ty:: InstanceKind :: AsyncDropGlueCtorShim ( _, None ) =
602
602
drop_instance. def
603
603
{
604
604
// we don't actually need to drop anything
@@ -630,7 +630,7 @@ pub(crate) fn codegen_drop<'tcx>(
630
630
// FIXME(eddyb) perhaps move some of this logic into
631
631
// `Instance::resolve_drop_in_place`?
632
632
let virtual_drop = Instance {
633
- def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
633
+ def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
634
634
args : drop_instance. args ,
635
635
} ;
636
636
let fn_abi =
@@ -673,7 +673,7 @@ pub(crate) fn codegen_drop<'tcx>(
673
673
fx. bcx . switch_to_block ( continued) ;
674
674
675
675
let virtual_drop = Instance {
676
- def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
676
+ def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
677
677
args : drop_instance. args ,
678
678
} ;
679
679
let fn_abi =
@@ -684,7 +684,7 @@ pub(crate) fn codegen_drop<'tcx>(
684
684
fx. bcx . ins ( ) . call_indirect ( sig, drop_fn, & [ data] ) ;
685
685
}
686
686
_ => {
687
- assert ! ( !matches!( drop_instance. def, InstanceDef :: Virtual ( _, _) ) ) ;
687
+ assert ! ( !matches!( drop_instance. def, InstanceKind :: Virtual ( _, _) ) ) ;
688
688
689
689
let fn_abi =
690
690
RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( drop_instance, ty:: List :: empty ( ) ) ;
0 commit comments