diff --git a/src/librustc_middle/ty/codec.rs b/src/librustc_middle/ty/codec.rs index c4d5bd7e602..8bc69a9d123 100644 --- a/src/librustc_middle/ty/codec.rs +++ b/src/librustc_middle/ty/codec.rs @@ -39,9 +39,9 @@ impl<'tcx> EncodableWithShorthand for Ty<'tcx> { } impl<'tcx> EncodableWithShorthand for ty::Predicate<'tcx> { - type Variant = ty::Predicate<'tcx>; + type Variant = ty::PredicateKind<'tcx>; fn variant(&self) -> &Self::Variant { - self + self.kind() } }