1
Fork 0

Add some comments

This commit is contained in:
Michael Goulet 2023-01-27 04:31:51 +00:00
parent ff2413db1b
commit 0654374750
2 changed files with 31 additions and 0 deletions

View file

@ -390,6 +390,8 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
}
impl<'tcx> EvalCtxt<'_, 'tcx> {
// Recursively evaluates a list of goals to completion, returning the certainty
// of all of the goals.
fn evaluate_all(
&mut self,
mut goals: Vec<Goal<'tcx, ty::Predicate<'tcx>>>,
@ -426,6 +428,10 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
})
}
// Recursively evaluates a list of goals to completion, making a query response.
//
// This is just a convenient way of calling [`EvalCtxt::evaluate_all`],
// then [`EvalCtxt::make_canonical_response`].
fn evaluate_all_and_make_canonical_response(
&mut self,
goals: Vec<Goal<'tcx, ty::Predicate<'tcx>>>,