1
Fork 0

don't into self

don't into()-convert types to themselves
This commit is contained in:
Matthias Krüger 2023-02-16 00:19:16 +01:00
parent af3c8b2726
commit a1a6588162
3 changed files with 4 additions and 5 deletions

View file

@ -125,11 +125,11 @@ impl<'tcx> InferCtxt<'tcx> {
}
(ty::Alias(AliasKind::Projection, _), _) if self.tcx.trait_solver_next() => {
relation.register_type_equate_obligation(a.into(), b.into());
relation.register_type_equate_obligation(a, b);
Ok(b)
}
(_, ty::Alias(AliasKind::Projection, _)) if self.tcx.trait_solver_next() => {
relation.register_type_equate_obligation(b.into(), a.into());
relation.register_type_equate_obligation(b, a);
Ok(a)
}