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
|
@ -319,9 +319,12 @@ pub(super) fn check_opaque_for_inheriting_lifetimes(
|
|||
selftys: vec![],
|
||||
};
|
||||
let prohibit_opaque = tcx
|
||||
.explicit_item_bounds(def_id)
|
||||
.iter()
|
||||
.try_for_each(|(predicate, _)| predicate.visit_with(&mut visitor));
|
||||
.bound_explicit_item_bounds(def_id.to_def_id())
|
||||
.transpose_iter()
|
||||
.try_for_each(|bound| {
|
||||
let predicate = bound.map_bound(|&(predicate, _)| predicate).subst_identity();
|
||||
predicate.visit_with(&mut visitor)
|
||||
});
|
||||
|
||||
if let Some(ty) = prohibit_opaque.break_value() {
|
||||
visitor.visit_item(&item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue