1
Fork 0

Better binder treatment

This commit is contained in:
Michael Goulet 2022-09-20 16:39:39 +00:00
parent 4136b59b7d
commit 83e6128b57
3 changed files with 42 additions and 1 deletions

View file

@ -2765,7 +2765,7 @@ impl<'tcx> TypeRelation<'tcx> for SameTypeModuloInfer<'_, 'tcx> {
where
T: relate::Relate<'tcx>,
{
Ok(ty::Binder::dummy(self.relate(a.skip_binder(), b.skip_binder())?))
Ok(a.rebind(self.relate(a.skip_binder(), b.skip_binder())?))
}
fn consts(