Skip to content

Commit

Permalink
Auto merge of rust-lang#72743 - lcnr:predicate_f, r=nikomatsakis
Browse files Browse the repository at this point in the history
fix EncodeWithShorthand for Predicate

r? @nikomatsakis
  • Loading branch information
bors committed May 31, 2020
2 parents ea7181b + 222fbd2 commit b6fa392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_middle/ty/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit b6fa392

Please sign in to comment.