move normalizes_to_hack to AliasRelate

This commit is contained in:
lcnr
2024-03-18 12:08:06 +01:00
parent a42873e85b
commit 33c274f658
8 changed files with 60 additions and 67 deletions

View File

@@ -419,6 +419,17 @@ impl<'tcx> ProofTreeBuilder<'tcx> {
}
}
pub fn add_normalizes_to_goal(
ecx: &mut EvalCtxt<'_, 'tcx>,
goal: Goal<'tcx, ty::NormalizesTo<'tcx>>,
) {
if ecx.inspect.is_noop() {
return;
}
Self::add_goal(ecx, GoalSource::Misc, goal.with(ecx.tcx(), goal.predicate));
}
pub fn add_goal(
ecx: &mut EvalCtxt<'_, 'tcx>,
source: GoalSource,