Uplift trait_ref_is_knowable and friends
This commit is contained in:
parent
b2e30bdec4
commit
a982471e07
13 changed files with 508 additions and 458 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue