about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_middle/ty/codec.rs4
1 files changed, 2 insertions, 2 deletions
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()
     }
 }