about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/solve/mod.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-03-18 12:08:06 +0100
committerlcnr <rust@lcnr.de>2024-03-18 12:08:06 +0100
commit33c274f658f512b12b6c433e8c39b8aa1e575187 (patch)
treefffb3cf500c0c7ac0c969589907186334165c8cd /compiler/rustc_trait_selection/src/solve/mod.rs
parenta42873e85bcdcc83c3161309e0408f2147778523 (diff)
downloadrust-33c274f658f512b12b6c433e8c39b8aa1e575187.tar.gz
rust-33c274f658f512b12b6c433e8c39b8aa1e575187.zip
move `normalizes_to_hack` to `AliasRelate`
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve/mod.rs')
-rw-r--r--compiler/rustc_trait_selection/src/solve/mod.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/mod.rs b/compiler/rustc_trait_selection/src/solve/mod.rs
index 0bf28f520a4..e40ccd4cbce 100644
--- a/compiler/rustc_trait_selection/src/solve/mod.rs
+++ b/compiler/rustc_trait_selection/src/solve/mod.rs
@@ -202,12 +202,9 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
 
 impl<'tcx> EvalCtxt<'_, 'tcx> {
     #[instrument(level = "debug", skip(self))]
-    fn set_normalizes_to_hack_goal(&mut self, goal: Goal<'tcx, ty::NormalizesTo<'tcx>>) {
-        assert!(
-            self.nested_goals.normalizes_to_hack_goal.is_none(),
-            "attempted to set the projection eq hack goal when one already exists"
-        );
-        self.nested_goals.normalizes_to_hack_goal = Some(goal);
+    fn add_normalizes_to_goal(&mut self, goal: Goal<'tcx, ty::NormalizesTo<'tcx>>) {
+        inspect::ProofTreeBuilder::add_normalizes_to_goal(self, goal);
+        self.nested_goals.normalizes_to_goals.push(goal);
     }
 
     #[instrument(level = "debug", skip(self))]