about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorMarijn Schouten <mhkbst@gmail.com>2025-09-05 11:39:17 +0000
committerMarijn Schouten <mhkbst@gmail.com>2025-09-05 11:39:17 +0000
commit05659c99c9fc76ebd9e314f3e07c85df142e7456 (patch)
tree86022861d69077c3338762548572ebb1585af68d /compiler/rustc_codegen_llvm
parentad85bc524b1ad696e42061ad8338d382dffbdbe5 (diff)
downloadrust-05659c99c9fc76ebd9e314f3e07c85df142e7456.tar.gz
rust-05659c99c9fc76ebd9e314f3e07c85df142e7456.zip
gpu offload: change suspicious map into filter
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs b/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs
index 1280ab1442a..0737a18384b 100644
--- a/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs
+++ b/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs
@@ -193,7 +193,7 @@ fn gen_define_handling<'ll>(
     // reference) types.
     let num_ptr_types = types
         .iter()
-        .map(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer))
+        .filter(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer))
         .count();
 
     // We do not know their size anymore at this level, so hardcode a placeholder.