Consider a goal as NOT changed if its response is identity modulo regions
This commit is contained in:
parent
99f60ec411
commit
1ffc6ca9a5
3 changed files with 34 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue