mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
Remove unnecessary relate impl
This commit is contained in:
parent
5087bb1046
commit
cdef3b12de
@ -831,19 +831,6 @@ impl<'tcx> Relate<'tcx> for Term<'tcx> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx> Relate<'tcx> for ty::ProjectionPredicate<'tcx> {
|
|
||||||
fn relate<R: TypeRelation<'tcx>>(
|
|
||||||
relation: &mut R,
|
|
||||||
a: ty::ProjectionPredicate<'tcx>,
|
|
||||||
b: ty::ProjectionPredicate<'tcx>,
|
|
||||||
) -> RelateResult<'tcx, ty::ProjectionPredicate<'tcx>> {
|
|
||||||
Ok(ty::ProjectionPredicate {
|
|
||||||
projection_ty: relation.relate(a.projection_ty, b.projection_ty)?,
|
|
||||||
term: relation.relate(a.term, b.term)?,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// Error handling
|
// Error handling
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user