about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHayashi Mikihiro <34ttrweoewiwe28@gmail.com>2025-05-06 16:27:36 +0900
committerHayashi Mikihiro <34ttrweoewiwe28@gmail.com>2025-05-06 17:45:09 +0900
commit674e10e9828ab0701df24c6d5385b6b95e04896f (patch)
treeae50da6f6db5d50432abf40cfdddcd8291517018
parentb9a3e70ccb6f1da30a594ff30833a4b6e0a81e6a (diff)
downloadrust-674e10e9828ab0701df24c6d5385b6b95e04896f.tar.gz
rust-674e10e9828ab0701df24c6d5385b6b95e04896f.zip
Update crates/hir-expand/src/attrs.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
-rw-r--r--src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs b/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs
index 9eac5c2c721..5fe95f3043e 100644
--- a/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs
+++ b/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs
@@ -466,7 +466,7 @@ pub fn collect_attrs(
             Either::Left(attr) => attr.kind().is_outer(),
             Either::Right(comment) => comment.is_outer(),
         })
-        .map(|attr| (attr, false));
+        .zip(iter::repeat(false));
     outer_attrs
         .chain(inner_attrs)
         .enumerate()