diff options
| author | lcnr <rust@lcnr.de> | 2024-03-18 12:08:06 +0100 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-03-18 12:08:06 +0100 | 
| commit | 33c274f658f512b12b6c433e8c39b8aa1e575187 (patch) | |
| tree | fffb3cf500c0c7ac0c969589907186334165c8cd /compiler/rustc_trait_selection/src/solve/mod.rs | |
| parent | a42873e85bcdcc83c3161309e0408f2147778523 (diff) | |
| download | rust-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.rs | 9 | 
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))] | 
