Skip to content

Commit 837bde1

Browse files
Record certainty before evaluating nesteds, so we make candidates
1 parent 79734f1 commit 837bde1

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_trait_selection/src/solve/eval_ctxt

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt/canonical.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
9090
&mut self,
9191
certainty: Certainty,
9292
) -> QueryResult<'tcx> {
93+
self.inspect.make_canonical_response(certainty);
94+
9395
let goals_certainty = self.try_evaluate_added_goals()?;
9496
assert_eq!(
9597
self.tainted,
@@ -98,8 +100,6 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
98100
previous call to `try_evaluate_added_goals!`"
99101
);
100102

101-
self.inspect.make_canonical_response(certainty);
102-
103103
// When normalizing, we've replaced the expected term with an unconstrained
104104
// inference variable. This means that we dropped information which could
105105
// have been important. We handle this by instead returning the nested goals

0 commit comments

Comments
 (0)