@@ -65,7 +65,7 @@ pub struct Inherited<'tcx> {
6565 /// fallback. See the `fallback` module for details.
6666 pub ( super ) diverging_type_vars : RefCell < FxHashSet < Ty < ' tcx > > > ,
6767
68- pub ( super ) relationships : RefCell < FxHashMap < ty:: TyVid , ty:: FoundRelationships > > ,
68+ pub ( super ) infer_var_info : RefCell < FxHashMap < ty:: TyVid , ty:: InferVarInfo > > ,
6969}
7070
7171impl < ' tcx > Deref for Inherited < ' tcx > {
@@ -131,7 +131,7 @@ impl<'tcx> Inherited<'tcx> {
131131 deferred_generator_interiors : RefCell :: new ( Vec :: new ( ) ) ,
132132 diverging_type_vars : RefCell :: new ( Default :: default ( ) ) ,
133133 body_id,
134- relationships : RefCell :: new ( Default :: default ( ) ) ,
134+ infer_var_info : RefCell :: new ( Default :: default ( ) ) ,
135135 }
136136 }
137137
@@ -161,7 +161,7 @@ impl<'tcx> Inherited<'tcx> {
161161 }
162162
163163 pub fn update_infer_var_info ( & self , obligation : & PredicateObligation < ' tcx > ) {
164- let relationships = & mut self . relationships . borrow_mut ( ) ;
164+ let infer_var_info = & mut self . infer_var_info . borrow_mut ( ) ;
165165
166166 // (*) binder skipped
167167 if let ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( tpred) ) = obligation. predicate . kind ( ) . skip_binder ( )
@@ -183,7 +183,7 @@ impl<'tcx> Inherited<'tcx> {
183183 ) ;
184184 // Don't report overflow errors. Otherwise equivalent to may_hold.
185185 if let Ok ( result) = self . probe ( |_| self . evaluate_obligation ( & o) ) && result. may_apply ( ) {
186- relationships . entry ( ty) . or_default ( ) . self_in_trait = true ;
186+ infer_var_info . entry ( ty) . or_default ( ) . self_in_trait = true ;
187187 }
188188 }
189189
@@ -193,8 +193,8 @@ impl<'tcx> Inherited<'tcx> {
193193 // If the projection predicate (Foo::Bar == X) has X as a non-TyVid,
194194 // we need to make it into one.
195195 if let Some ( vid) = predicate. term . ty ( ) . and_then ( |ty| ty. ty_vid ( ) ) {
196- debug ! ( "relationships : {:?}.output = true" , vid) ;
197- relationships . entry ( vid) . or_default ( ) . output = true ;
196+ debug ! ( "infer_var_info : {:?}.output = true" , vid) ;
197+ infer_var_info . entry ( vid) . or_default ( ) . output = true ;
198198 }
199199 }
200200 }
0 commit comments