Function rustc_middle::ty::relate::structurally_relate_tys
source · pub fn structurally_relate_tys<'tcx, R: TypeRelation<'tcx>>(
relation: &mut R,
a: Ty<'tcx>,
b: Ty<'tcx>
) -> RelateResult<'tcx, Ty<'tcx>>
Expand description
Relates a
and b
structurally, calling the relation for all nested values.
Any semantic equality, e.g. of projections, and inference variables have to be
handled by the caller.