diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-05-29 18:47:40 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-05-29 18:47:52 +0200 |
| commit | 222fbd20f2b907ac19303906bda44f6d63fe84a4 (patch) | |
| tree | a9ae34f7fa6109a9b07d39a0ed237d419277dbe8 | |
| parent | 96dd4690c3aa70ec312448c3f2d50e6dc6fb87df (diff) | |
| download | rust-222fbd20f2b907ac19303906bda44f6d63fe84a4.tar.gz rust-222fbd20f2b907ac19303906bda44f6d63fe84a4.zip | |
fix encode with shorthand for Predicate
| -rw-r--r-- | src/librustc_middle/ty/codec.rs | 4 |
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() } } |
