We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6b425 commit b786f98Copy full SHA for b786f98
crates/hir-expand/src/attrs.rs
@@ -460,7 +460,7 @@ pub fn collect_attrs(
460
owner: &dyn ast::HasAttrs,
461
) -> impl Iterator<Item = (AttrId, Either<ast::Attr, ast::Comment>)> {
462
let inner_attrs =
463
- inner_attributes(owner.syntax()).into_iter().flatten().map(|attr| (attr, true));
+ inner_attributes(owner.syntax()).into_iter().flatten().zip(iter::repeat(true));
464
let outer_attrs = ast::AttrDocCommentIter::from_syntax_node(owner.syntax())
465
.filter(|el| match el {
466
Either::Left(attr) => attr.kind().is_outer(),
0 commit comments