@@ -65,7 +65,7 @@ pub struct Inherited<'tcx> {
65
65
/// fallback. See the `fallback` module for details.
66
66
pub ( super ) diverging_type_vars : RefCell < FxHashSet < Ty < ' tcx > > > ,
67
67
68
- pub ( super ) relationships : RefCell < FxHashMap < ty:: TyVid , ty:: FoundRelationships > > ,
68
+ pub ( super ) infer_var_info : RefCell < FxHashMap < ty:: TyVid , ty:: InferVarInfo > > ,
69
69
}
70
70
71
71
impl < ' tcx > Deref for Inherited < ' tcx > {
@@ -131,7 +131,7 @@ impl<'tcx> Inherited<'tcx> {
131
131
deferred_generator_interiors : RefCell :: new ( Vec :: new ( ) ) ,
132
132
diverging_type_vars : RefCell :: new ( Default :: default ( ) ) ,
133
133
body_id,
134
- relationships : RefCell :: new ( Default :: default ( ) ) ,
134
+ infer_var_info : RefCell :: new ( Default :: default ( ) ) ,
135
135
}
136
136
}
137
137
@@ -161,7 +161,7 @@ impl<'tcx> Inherited<'tcx> {
161
161
}
162
162
163
163
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 ( ) ;
165
165
166
166
// (*) binder skipped
167
167
if let ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( tpred) ) = obligation. predicate . kind ( ) . skip_binder ( )
@@ -183,7 +183,7 @@ impl<'tcx> Inherited<'tcx> {
183
183
) ;
184
184
// Don't report overflow errors. Otherwise equivalent to may_hold.
185
185
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 ;
187
187
}
188
188
}
189
189
@@ -193,8 +193,8 @@ impl<'tcx> Inherited<'tcx> {
193
193
// If the projection predicate (Foo::Bar == X) has X as a non-TyVid,
194
194
// we need to make it into one.
195
195
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 ;
198
198
}
199
199
}
200
200
}
0 commit comments