@@ -406,12 +406,12 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
406
406
407
407
impl < ' tcx > EvalCtxt < ' _ , ' tcx > {
408
408
#[ instrument( level = "debug" , skip( self ) ) ]
409
- fn set_projection_eq_hack_goal ( & mut self , goal : Goal < ' tcx , ty:: ProjectionPredicate < ' tcx > > ) {
409
+ fn set_normalizes_to_hack_goal ( & mut self , goal : Goal < ' tcx , ty:: ProjectionPredicate < ' tcx > > ) {
410
410
assert ! (
411
- self . nested_goals. projection_eq_hack_goal . is_none( ) ,
411
+ self . nested_goals. normalizes_to_hack_goal . is_none( ) ,
412
412
"attempted to set the projection eq hack goal when one already exists"
413
413
) ;
414
- self . nested_goals . projection_eq_hack_goal = Some ( goal) ;
414
+ self . nested_goals . normalizes_to_hack_goal = Some ( goal) ;
415
415
}
416
416
417
417
#[ instrument( level = "debug" , skip( self ) ) ]
@@ -438,7 +438,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
438
438
|this| {
439
439
let mut has_changed = Err ( Certainty :: Yes ) ;
440
440
441
- if let Some ( goal) = goals. projection_eq_hack_goal . take ( ) {
441
+ if let Some ( goal) = goals. normalizes_to_hack_goal . take ( ) {
442
442
let ( _, certainty) = match this. evaluate_goal (
443
443
IsNormalizesToHack :: Yes ,
444
444
goal. with ( this. tcx ( ) , ty:: Binder :: dummy ( goal. predicate ) ) ,
@@ -475,7 +475,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
475
475
term,
476
476
projection_ty : goal. predicate . projection_ty ,
477
477
} ;
478
- new_goals. projection_eq_hack_goal =
478
+ new_goals. normalizes_to_hack_goal =
479
479
Some ( goal. with ( this. tcx ( ) , projection_pred) ) ;
480
480
481
481
has_changed = has_changed. map_err ( |c| c. unify_and ( certainty) ) ;
0 commit comments