fix encode with shorthand for Predicate

This commit is contained in:
Bastian Kauschke 2020-05-29 18:47:40 +02:00
parent 96dd4690c3
commit 222fbd20f2

View file

@ -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()
}
}