Remove bound_{explicit,}_item_bounds
This commit is contained in:
parent
e1533a26f7
commit
90df86f474
6 changed files with 40 additions and 64 deletions
|
@ -330,9 +330,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
|
||||
let Ok(trait_predicates) = self
|
||||
.tcx
|
||||
.bound_explicit_predicates_of(trait_item_def_id)
|
||||
.map_bound(|p| p.predicates)
|
||||
.subst_iter_copied(self.tcx, trait_item_substs)
|
||||
.explicit_predicates_of(trait_item_def_id)
|
||||
.instantiate_own(self.tcx, trait_item_substs)
|
||||
.map(|(pred, _)| {
|
||||
if pred.is_suggestable(self.tcx, false) {
|
||||
Ok(pred.to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue