1
Fork 0

Uplift trait_ref_is_knowable and friends

This commit is contained in:
Michael Goulet 2024-07-06 18:24:51 -04:00
parent b2e30bdec4
commit a982471e07
13 changed files with 508 additions and 458 deletions

View file

@ -1523,7 +1523,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
// bound regions.
let trait_ref = predicate.skip_binder().trait_ref;
coherence::trait_ref_is_knowable::<!>(self.infcx, trait_ref, |ty| Ok(ty)).unwrap()
coherence::trait_ref_is_knowable(self.infcx, trait_ref, |ty| Ok::<_, !>(ty)).into_ok()
}
/// Returns `true` if the global caches can be used.