Skip to content

Commit b6fa392

Browse files
committed
Auto merge of #72743 - lcnr:predicate_f, r=nikomatsakis
fix EncodeWithShorthand for Predicate r? @nikomatsakis
2 parents ea7181b + 222fbd2 commit b6fa392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_middle/ty/codec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ impl<'tcx> EncodableWithShorthand for Ty<'tcx> {
3939
}
4040

4141
impl<'tcx> EncodableWithShorthand for ty::Predicate<'tcx> {
42-
type Variant = ty::Predicate<'tcx>;
42+
type Variant = ty::PredicateKind<'tcx>;
4343
fn variant(&self) -> &Self::Variant {
44-
self
44+
self.kind()
4545
}
4646
}
4747

0 commit comments

Comments
 (0)