about summary refs log tree commit diff
path: root/compiler/rustc_traits
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-01 23:44:16 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2023-04-01 23:44:16 +0200
commitac229c281981129003cfcf6ef894bb7655b0d466 (patch)
tree2c2d444140da6922448e33da2967901fa32aa9ee /compiler/rustc_traits
parent0196c2bd274dd5bb01c77b5a9b1da9623571b0f8 (diff)
downloadrust-ac229c281981129003cfcf6ef894bb7655b0d466.tar.gz
rust-ac229c281981129003cfcf6ef894bb7655b0d466.zip
fix clippy::iter_kv_map
Diffstat (limited to 'compiler/rustc_traits')
-rw-r--r--compiler/rustc_traits/src/chalk/lowering.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_traits/src/chalk/lowering.rs b/compiler/rustc_traits/src/chalk/lowering.rs
index 0e9bccba8d4..527f6013a15 100644
--- a/compiler/rustc_traits/src/chalk/lowering.rs
+++ b/compiler/rustc_traits/src/chalk/lowering.rs
@@ -909,8 +909,7 @@ pub(crate) fn collect_bound_vars<'tcx, T: TypeFoldable<TyCtxt<'tcx>>>(
             .or_else(|| bug!("Skipped bound var index: parameters={:?}", parameters));
     });
 
-    let binders =
-        chalk_ir::VariableKinds::from_iter(interner, parameters.into_iter().map(|(_, v)| v));
+    let binders = chalk_ir::VariableKinds::from_iter(interner, parameters.into_values());
 
     (new_ty, binders, named_parameters)
 }