mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
Relate impl
This commit is contained in:
parent
3bab45d2ac
commit
779eef2dae
@ -214,6 +214,19 @@ impl<'tcx> Relate<'tcx> for ast::Constness {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx, T: Relate<'tcx>> Relate<'tcx> for ty::ConstnessAnd<T> {
|
||||
fn relate<R: TypeRelation<'tcx>>(
|
||||
relation: &mut R,
|
||||
a: ty::ConstnessAnd<T>,
|
||||
b: ty::ConstnessAnd<T>,
|
||||
) -> RelateResult<'tcx, ty::ConstnessAnd<T>> {
|
||||
Ok(ty::ConstnessAnd {
|
||||
constness: relation.relate(a.constness, b.constness)?,
|
||||
value: relation.relate(a.value, b.value)?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx> Relate<'tcx> for ast::Unsafety {
|
||||
fn relate<R: TypeRelation<'tcx>>(
|
||||
relation: &mut R,
|
||||
|
Loading…
Reference in New Issue
Block a user