Skip to content

Commit 222fbd2

Browse files
committed
fix encode with shorthand for Predicate
1 parent 96dd469 commit 222fbd2

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)