@@ -761,6 +761,8 @@ impl<'a, 'tcx> Lift<'tcx> for ty::InstanceDef<'a> {
761761 Some ( ty:: InstanceDef :: Item ( def_id) ) ,
762762 ty:: InstanceDef :: VtableShim ( def_id) =>
763763 Some ( ty:: InstanceDef :: VtableShim ( def_id) ) ,
764+ ty:: InstanceDef :: ReifyShim ( def_id) =>
765+ Some ( ty:: InstanceDef :: ReifyShim ( def_id) ) ,
764766 ty:: InstanceDef :: Intrinsic ( def_id) =>
765767 Some ( ty:: InstanceDef :: Intrinsic ( def_id) ) ,
766768 ty:: InstanceDef :: FnPtrShim ( def_id, ref ty) =>
@@ -966,6 +968,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::instance::Instance<'tcx> {
966968 def : match self . def {
967969 Item ( did) => Item ( did. fold_with ( folder) ) ,
968970 VtableShim ( did) => VtableShim ( did. fold_with ( folder) ) ,
971+ ReifyShim ( did) => ReifyShim ( did. fold_with ( folder) ) ,
969972 Intrinsic ( did) => Intrinsic ( did. fold_with ( folder) ) ,
970973 FnPtrShim ( did, ty) => FnPtrShim (
971974 did. fold_with ( folder) ,
@@ -994,7 +997,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::instance::Instance<'tcx> {
994997 use crate :: ty:: InstanceDef :: * ;
995998 self . substs . visit_with ( visitor) ||
996999 match self . def {
997- Item ( did) | VtableShim ( did) | Intrinsic ( did) | Virtual ( did, _) => {
1000+ Item ( did) | VtableShim ( did) | ReifyShim ( did ) | Intrinsic ( did) | Virtual ( did, _) => {
9981001 did. visit_with ( visitor)
9991002 } ,
10001003 FnPtrShim ( did, ty) | CloneShim ( did, ty) => {
0 commit comments