diff options
| author | Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> | 2025-05-06 16:27:23 +0900 |
|---|---|---|
| committer | Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> | 2025-05-06 17:45:09 +0900 |
| commit | b9a3e70ccb6f1da30a594ff30833a4b6e0a81e6a (patch) | |
| tree | dd04a2d1bb83e9b4acab63d990ef538a2b639bce | |
| parent | 546065a3150d4ae438e01c751bfcda6875e141d0 (diff) | |
| download | rust-b9a3e70ccb6f1da30a594ff30833a4b6e0a81e6a.tar.gz rust-b9a3e70ccb6f1da30a594ff30833a4b6e0a81e6a.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.rs | 2 |
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 b350a6f8ac0..9eac5c2c721 100644 --- a/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs +++ b/src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs @@ -460,7 +460,7 @@ pub fn collect_attrs( owner: &dyn ast::HasAttrs, ) -> impl Iterator<Item = (AttrId, Either<ast::Attr, ast::Comment>)> { let inner_attrs = - inner_attributes(owner.syntax()).into_iter().flatten().map(|attr| (attr, true)); + inner_attributes(owner.syntax()).into_iter().flatten().zip(iter::repeat(true)); let outer_attrs = ast::AttrDocCommentIter::from_syntax_node(owner.syntax()) .filter(|el| match el { Either::Left(attr) => attr.kind().is_outer(), |
