1
Fork 0

No need to expect RPITIT projections in opaque item bounds

This commit is contained in:
Michael Goulet 2023-07-30 20:43:24 +00:00
parent 23776619a8
commit 44c8ab9f8b
4 changed files with 3 additions and 30 deletions

View file

@ -619,13 +619,6 @@ impl<'tcx> InferCtxt<'tcx> {
{
hidden_ty
}
// FIXME(RPITIT): This can go away when we move to associated types
// FIXME(inherent_associated_types): Extend this to support `ty::Inherent`, too.
ty::Alias(ty::Projection, ty::AliasTy { def_id: def_id2, args: args2, .. })
if def_id == def_id2 && args == args2 =>
{
hidden_ty
}
_ => ty,
},
lt_op: |lt| lt,