@@ -136,6 +136,10 @@ impl<'tcx> rustc_type_ir::InferCtxtLike for InferCtxt<'tcx> {
136136self . enter_forall ( value, f)
137137}
138138
139+ fn equate_ty_vids_raw ( & self , a : rustc_type_ir:: TyVid , b : rustc_type_ir:: TyVid ) {
140+ self . inner . borrow_mut ( ) . type_variables ( ) . equate ( a, b) ;
141+ }
142+
139143fn equate_int_vids_raw ( & self , a : rustc_type_ir:: IntVid , b : rustc_type_ir:: IntVid ) {
140144self . inner . borrow_mut ( ) . int_unification_table ( ) . union ( a, b) ;
141145}
@@ -152,6 +156,23 @@ impl<'tcx> rustc_type_ir::InferCtxtLike for InferCtxt<'tcx> {
152156self . inner . borrow_mut ( ) . effect_unification_table ( ) . union ( a, b) ;
153157}
154158
159+ fn instantiate_ty_var_raw < R : PredicateEmittingRelation < Self > > (
160+ & self ,
161+ relation : & mut R ,
162+ target_is_expected : bool ,
163+ target_vid : rustc_type_ir:: TyVid ,
164+ instantiation_variance : rustc_type_ir:: Variance ,
165+ source_ty : Ty < ' tcx > ,
166+ ) -> RelateResult < ' tcx , ( ) > {
167+ self . instantiate_ty_var (
168+ relation,
169+ target_is_expected,
170+ target_vid,
171+ instantiation_variance,
172+ source_ty,
173+ )
174+ }
175+
155176fn instantiate_int_var_raw (
156177& self ,
157178vid : rustc_type_ir:: IntVid ,
@@ -228,7 +249,19 @@ impl<'tcx> rustc_type_ir::InferCtxtLike for InferCtxt<'tcx> {
228249}
229250
230251fn sub_regions ( & self , sub : ty:: Region < ' tcx > , sup : ty:: Region < ' tcx > ) {
231- self . sub_regions ( SubregionOrigin :: RelateRegionParamBound ( DUMMY_SP , None ) , sub, sup)
252+ self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . make_subregion (
253+ SubregionOrigin :: RelateRegionParamBound ( DUMMY_SP , None ) ,
254+ sub,
255+ sup,
256+ ) ;
257+ }
258+
259+ fn equate_regions ( & self , a : ty:: Region < ' tcx > , b : ty:: Region < ' tcx > ) {
260+ self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . make_eqregion (
261+ SubregionOrigin :: RelateRegionParamBound ( DUMMY_SP , None ) ,
262+ a,
263+ b,
264+ ) ;
232265}
233266
234267fn register_ty_outlives ( & self , ty : Ty < ' tcx > , r : ty:: Region < ' tcx > ) {
0 commit comments