We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7199946 commit fe2519bCopy full SHA for fe2519b
compiler/rustc_middle/src/ty/relate.rs
@@ -214,6 +214,19 @@ impl<'tcx> Relate<'tcx> for ast::Constness {
214
}
215
216
217
+impl<'tcx, T: Relate<'tcx>> Relate<'tcx> for ty::ConstnessAnd<T> {
218
+ fn relate<R: TypeRelation<'tcx>>(
219
+ relation: &mut R,
220
+ a: ty::ConstnessAnd<T>,
221
+ b: ty::ConstnessAnd<T>,
222
+ ) -> RelateResult<'tcx, ty::ConstnessAnd<T>> {
223
+ Ok(ty::ConstnessAnd {
224
+ constness: relation.relate(a.constness, b.constness)?,
225
+ value: relation.relate(a.value, b.value)?,
226
+ })
227
+ }
228
+}
229
+
230
impl<'tcx> Relate<'tcx> for ast::Unsafety {
231
fn relate<R: TypeRelation<'tcx>>(
232
relation: &mut R,
0 commit comments