1
Fork 0

Consider a goal as NOT changed if its response is identity modulo regions

This commit is contained in:
Michael Goulet 2023-07-27 04:00:18 +00:00
parent 99f60ec411
commit 1ffc6ca9a5
3 changed files with 34 additions and 2 deletions

View file

@ -344,7 +344,7 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
Ok(response) => response,
};
let has_changed = !canonical_response.value.var_values.is_identity()
let has_changed = !canonical_response.value.var_values.is_identity_modulo_regions()
|| !canonical_response.value.external_constraints.opaque_types.is_empty();
let (certainty, nested_goals) = match self.instantiate_and_apply_query_response(
goal.param_env,