Auto merge of #72743 - lcnr:predicate_f, r=nikomatsakis

fix EncodeWithShorthand for Predicate

r? @nikomatsakis
This commit is contained in:
bors 2020-05-31 04:44:38 +00:00
commit b6fa392238
1 changed files with 2 additions and 2 deletions

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