From 222fbd20f2b907ac19303906bda44f6d63fe84a4 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Fri, 29 May 2020 18:47:40 +0200 Subject: [PATCH] fix encode with shorthand for Predicate --- src/librustc_middle/ty/codec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_middle/ty/codec.rs b/src/librustc_middle/ty/codec.rs index c4d5bd7e60255..8bc69a9d12312 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() } }