Rename arg_iter to iter_instantiated
This commit is contained in:
parent
2feb9a582f
commit
d1e1dcb1fb
2 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
|
|||
if let ty::Alias(ty::Opaque, AliasTy { def_id, args, .. }) = *ret_ty.kind() {
|
||||
let preds = cx.tcx.explicit_item_bounds(def_id);
|
||||
let mut is_future = false;
|
||||
for (p, _span) in preds.arg_iter_copied(cx.tcx, args) {
|
||||
for (p, _span) in preds.iter_instantiated_copied(cx.tcx, args) {
|
||||
if let Some(trait_pred) = p.as_trait_clause() {
|
||||
if Some(trait_pred.skip_binder().trait_ref.def_id) == cx.tcx.lang_items().future_trait() {
|
||||
is_future = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue