anonymize all bound vars, not just regions
This commit is contained in:
parent
fd59d058ec
commit
c3fce8e937
7 changed files with 95 additions and 13 deletions
|
@ -318,8 +318,8 @@ impl<'tcx> TypeRelation<'tcx> for SimpleEqRelation<'tcx> {
|
|||
|
||||
// Anonymizing the LBRs is necessary to solve (Issue #59497).
|
||||
// After we do so, it should be totally fine to skip the binders.
|
||||
let anon_a = self.tcx.anonymize_late_bound_regions(a);
|
||||
let anon_b = self.tcx.anonymize_late_bound_regions(b);
|
||||
let anon_a = self.tcx.anonymize_bound_vars(a);
|
||||
let anon_b = self.tcx.anonymize_bound_vars(b);
|
||||
self.relate(anon_a.skip_binder(), anon_b.skip_binder())?;
|
||||
|
||||
Ok(a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue