add EarlyBinder to output of explicit_item_bounds; replace bound_explicit_item_bounds usages; remove bound_explicit_item_bounds query
This commit is contained in:
parent
0892a7380b
commit
f3b279fcc5
26 changed files with 49 additions and 56 deletions
|
@ -74,7 +74,7 @@ impl<'tcx> LateLintPass<'tcx> for OpaqueHiddenInferredBound {
|
|||
// For every projection predicate in the opaque type's explicit bounds,
|
||||
// check that the type that we're assigning actually satisfies the bounds
|
||||
// of the associated type.
|
||||
for bound in cx.tcx.bound_explicit_item_bounds(def_id).transpose_iter() {
|
||||
for bound in cx.tcx.explicit_item_bounds(def_id).transpose_iter() {
|
||||
let (pred, pred_span) = bound.map_bound(|b| *b).subst_identity();
|
||||
|
||||
// Liberate bound regions in the predicate since we
|
||||
|
@ -114,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for OpaqueHiddenInferredBound {
|
|||
// with `impl Send: OtherTrait`.
|
||||
for (assoc_pred, assoc_pred_span) in cx
|
||||
.tcx
|
||||
.bound_explicit_item_bounds(proj.projection_ty.def_id)
|
||||
.explicit_item_bounds(proj.projection_ty.def_id)
|
||||
.subst_iter_copied(cx.tcx, &proj.projection_ty.substs)
|
||||
{
|
||||
let assoc_pred = assoc_pred.fold_with(proj_replacer);
|
||||
|
|
|
@ -257,7 +257,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedResults {
|
|||
elaborate(
|
||||
cx.tcx,
|
||||
cx.tcx
|
||||
.bound_explicit_item_bounds(def)
|
||||
.explicit_item_bounds(def)
|
||||
.transpose_iter()
|
||||
.map(|bound| bound.map_bound(|b| *b).subst_identity()),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue