1
Fork 0

inspect: explicitly store added goals

This commit is contained in:
lcnr 2023-09-14 10:41:36 +02:00
parent a3f9530b30
commit 1b141b6d73
5 changed files with 21 additions and 1 deletions

View file

@ -228,6 +228,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
#[instrument(level = "debug", skip(self))]
fn add_goal(&mut self, goal: Goal<'tcx, ty::Predicate<'tcx>>) {
self.inspect.add_goal(goal);
self.nested_goals.goals.push(goal);
}