Skip to content

Commit cdef3b1

Browse files
Remove unnecessary relate impl
1 parent 5087bb1 commit cdef3b1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler/rustc_middle/src/ty/relate.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -831,19 +831,6 @@ impl<'tcx> Relate<'tcx> for Term<'tcx> {
831831
}
832832
}
833833

834-
impl<'tcx> Relate<'tcx> for ty::ProjectionPredicate<'tcx> {
835-
fn relate<R: TypeRelation<'tcx>>(
836-
relation: &mut R,
837-
a: ty::ProjectionPredicate<'tcx>,
838-
b: ty::ProjectionPredicate<'tcx>,
839-
) -> RelateResult<'tcx, ty::ProjectionPredicate<'tcx>> {
840-
Ok(ty::ProjectionPredicate {
841-
projection_ty: relation.relate(a.projection_ty, b.projection_ty)?,
842-
term: relation.relate(a.term, b.term)?,
843-
})
844-
}
845-
}
846-
847834
///////////////////////////////////////////////////////////////////////////
848835
// Error handling
849836

0 commit comments

Comments
 (0)