Can't use EncodableWithShorthand for Predicate

This commit is contained in:
Jack Huey
2021-01-16 19:17:59 -05:00
parent dcad9f1893
commit f2ed9a3a8c
4 changed files with 2 additions and 35 deletions

View File

@@ -1064,11 +1064,6 @@ impl<'tcx> Predicate<'tcx> {
pub fn kind(self) -> Binder<PredicateKind<'tcx>> {
self.inner.kind
}
/// Like `kind` but returns a reference. Only needed because of encoding.
pub(super) fn kind_ref(self) -> &'tcx Binder<PredicateKind<'tcx>> {
&self.inner.kind
}
}
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Predicate<'tcx> {