@@ -761,6 +761,8 @@ impl<'a, 'tcx> Lift<'tcx> for ty::InstanceDef<'a> {
761
761
Some ( ty:: InstanceDef :: Item ( def_id) ) ,
762
762
ty:: InstanceDef :: VtableShim ( def_id) =>
763
763
Some ( ty:: InstanceDef :: VtableShim ( def_id) ) ,
764
+ ty:: InstanceDef :: ReifyShim ( def_id) =>
765
+ Some ( ty:: InstanceDef :: ReifyShim ( def_id) ) ,
764
766
ty:: InstanceDef :: Intrinsic ( def_id) =>
765
767
Some ( ty:: InstanceDef :: Intrinsic ( def_id) ) ,
766
768
ty:: InstanceDef :: FnPtrShim ( def_id, ref ty) =>
@@ -966,6 +968,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::instance::Instance<'tcx> {
966
968
def : match self . def {
967
969
Item ( did) => Item ( did. fold_with ( folder) ) ,
968
970
VtableShim ( did) => VtableShim ( did. fold_with ( folder) ) ,
971
+ ReifyShim ( did) => ReifyShim ( did. fold_with ( folder) ) ,
969
972
Intrinsic ( did) => Intrinsic ( did. fold_with ( folder) ) ,
970
973
FnPtrShim ( did, ty) => FnPtrShim (
971
974
did. fold_with ( folder) ,
@@ -994,7 +997,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::instance::Instance<'tcx> {
994
997
use crate :: ty:: InstanceDef :: * ;
995
998
self . substs . visit_with ( visitor) ||
996
999
match self . def {
997
- Item ( did) | VtableShim ( did) | Intrinsic ( did) | Virtual ( did, _) => {
1000
+ Item ( did) | VtableShim ( did) | ReifyShim ( did ) | Intrinsic ( did) | Virtual ( did, _) => {
998
1001
did. visit_with ( visitor)
999
1002
} ,
1000
1003
FnPtrShim ( did, ty) | CloneShim ( did, ty) => {
0 commit comments