Rename arg_iter to iter_instantiated
This commit is contained in:
parent
4eaad89dce
commit
05f6890b3e
20 changed files with 47 additions and 40 deletions
|
@ -403,7 +403,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
let future_trait = self.tcx.require_lang_item(LangItem::Future, None);
|
||||
let item_def_id = self.tcx.associated_item_def_ids(future_trait)[0];
|
||||
|
||||
self.tcx.explicit_item_bounds(def_id).arg_iter_copied(self.tcx, args).find_map(
|
||||
self.tcx.explicit_item_bounds(def_id).iter_instantiated_copied(self.tcx, args).find_map(
|
||||
|(predicate, _)| {
|
||||
predicate
|
||||
.kind()
|
||||
|
|
|
@ -591,7 +591,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
let tcx = self.tcx;
|
||||
let item_bounds = tcx.explicit_item_bounds(def_id);
|
||||
|
||||
for (predicate, _) in item_bounds.arg_iter_copied(tcx, args) {
|
||||
for (predicate, _) in item_bounds.iter_instantiated_copied(tcx, args) {
|
||||
let predicate = predicate.fold_with(&mut BottomUpFolder {
|
||||
tcx,
|
||||
ty_op: |ty| match *ty.kind() {
|
||||
|
|
|
@ -295,7 +295,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
|
|||
let bounds = tcx.item_bounds(alias_ty.def_id);
|
||||
trace!("{:#?}", bounds.skip_binder());
|
||||
bounds
|
||||
.arg_iter(tcx, alias_ty.args)
|
||||
.iter_instantiated(tcx, alias_ty.args)
|
||||
.filter_map(|p| p.as_type_outlives_clause())
|
||||
.filter_map(|p| p.no_bound_vars())
|
||||
.map(|OutlivesPredicate(_, r)| r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue