about summary refs log tree commit diff
path: root/compiler/rustc_borrowck
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-17 17:49:47 +0000
committerMichael Goulet <michael@errs.io>2023-07-17 21:04:12 +0000
commit05f6890b3e8d35981e043f24e7a8c02810a2db59 (patch)
tree555bbc5ca51205882ac6c866549ae6d09da19037 /compiler/rustc_borrowck
parent4eaad89dce57da09cebbf651e9ac3bd3292b4725 (diff)
downloadrust-05f6890b3e8d35981e043f24e7a8c02810a2db59.tar.gz
rust-05f6890b3e8d35981e043f24e7a8c02810a2db59.zip
Rename arg_iter to iter_instantiated
Diffstat (limited to 'compiler/rustc_borrowck')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
index 278e450c6b5..97c3e0b879a 100644
--- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
+++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
@@ -695,7 +695,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
                 .find_map(find_fn_kind_from_did),
             ty::Alias(ty::Opaque, ty::AliasTy { def_id, args, .. }) => tcx
                 .explicit_item_bounds(def_id)
-                .arg_iter_copied(tcx, args)
+                .iter_instantiated_copied(tcx, args)
                 .find_map(|(clause, span)| find_fn_kind_from_did((clause, span))),
             ty::Closure(_, args) => match args.as_closure().kind() {
                 ty::ClosureKind::Fn => Some(hir::Mutability::Not),