Skip to content

Commit e06c62c

Browse files
committed
UNACEPTABLE
1 parent ce14a1e commit e06c62c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ pub(super) enum IsNormalizesToHack {
4343

4444
#[derive(Debug, Clone)]
4545
pub(super) struct NestedGoals<'tcx> {
46-
pub(super) projection_eq_hack_goal: Option<Goal<'tcx, ty::ProjectionPredicate<'tcx>>>,
46+
pub(super) normalizes_to_hack_goal: Option<Goal<'tcx, ty::ProjectionPredicate<'tcx>>>,
4747
pub(super) goals: Vec<Goal<'tcx, ty::Predicate<'tcx>>>,
4848
}
4949

5050
impl NestedGoals<'_> {
5151
pub(super) fn new() -> Self {
52-
Self { projection_eq_hack_goal: None, goals: Vec::new() }
52+
Self { normalizes_to_hack_goal: None, goals: Vec::new() }
5353
}
5454

5555
pub(super) fn is_empty(&self) -> bool {
56-
self.projection_eq_hack_goal.is_none() && self.goals.is_empty()
56+
self.normalizes_to_hack_goal.is_none() && self.goals.is_empty()
5757
}
5858
}
5959

compiler/rustc_trait_selection/src/solve/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,12 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
406406

407407
impl<'tcx> EvalCtxt<'_, 'tcx> {
408408
#[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>>) {
410410
assert!(
411-
self.nested_goals.projection_eq_hack_goal.is_none(),
411+
self.nested_goals.normalizes_to_hack_goal.is_none(),
412412
"attempted to set the projection eq hack goal when one already exists"
413413
);
414-
self.nested_goals.projection_eq_hack_goal = Some(goal);
414+
self.nested_goals.normalizes_to_hack_goal = Some(goal);
415415
}
416416

417417
#[instrument(level = "debug", skip(self))]
@@ -438,7 +438,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
438438
|this| {
439439
let mut has_changed = Err(Certainty::Yes);
440440

441-
if let Some(goal) = goals.projection_eq_hack_goal.take() {
441+
if let Some(goal) = goals.normalizes_to_hack_goal.take() {
442442
let (_, certainty) = match this.evaluate_goal(
443443
IsNormalizesToHack::Yes,
444444
goal.with(this.tcx(), ty::Binder::dummy(goal.predicate)),
@@ -475,7 +475,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
475475
term,
476476
projection_ty: goal.predicate.projection_ty,
477477
};
478-
new_goals.projection_eq_hack_goal =
478+
new_goals.normalizes_to_hack_goal =
479479
Some(goal.with(this.tcx(), projection_pred));
480480

481481
has_changed = has_changed.map_err(|c| c.unify_and(certainty));

compiler/rustc_trait_selection/src/solve/project_goals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
4343
term: unconstrained_rhs,
4444
};
4545

46-
self.set_projection_eq_hack_goal(goal.with(self.tcx(), unconstrained_predicate));
46+
self.set_normalizes_to_hack_goal(goal.with(self.tcx(), unconstrained_predicate));
4747
self.try_evaluate_added_goals()?;
4848
self.eq(goal.param_env, unconstrained_rhs, predicate.term)?;
4949
self.evaluate_added_goals_and_make_canonical_response(Certainty::Yes)

0 commit comments

Comments
 (0)