change usages of explicit_item_bounds to bound_explicit_item_bounds
This commit is contained in:
parent
a57fa08f48
commit
0892a7380b
13 changed files with 75 additions and 49 deletions
|
@ -297,8 +297,9 @@ fn bounds_reference_self(tcx: TyCtxt<'_>, trait_def_id: DefId) -> SmallVec<[Span
|
|||
tcx.associated_items(trait_def_id)
|
||||
.in_definition_order()
|
||||
.filter(|item| item.kind == ty::AssocKind::Type)
|
||||
.flat_map(|item| tcx.explicit_item_bounds(item.def_id))
|
||||
.filter_map(|pred_span| predicate_references_self(tcx, *pred_span))
|
||||
.flat_map(|item| tcx.bound_explicit_item_bounds(item.def_id).transpose_iter())
|
||||
.map(|bound| bound.map_bound(|b| *b).subst_identity())
|
||||
.filter_map(|pred_span| predicate_references_self(tcx, pred_span))
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue