aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/attr.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs
index 0360fb627..beeaaf117 100644
--- a/crates/hir_def/src/attr.rs
+++ b/crates/hir_def/src/attr.rs
@@ -208,9 +208,10 @@ impl Attrs {
208 AdtId::UnionId(it) => attrs_from_item_tree(it.lookup(db).id, db), 208 AdtId::UnionId(it) => attrs_from_item_tree(it.lookup(db).id, db),
209 }, 209 },
210 AttrDefId::TraitId(it) => attrs_from_item_tree(it.lookup(db).id, db), 210 AttrDefId::TraitId(it) => attrs_from_item_tree(it.lookup(db).id, db),
211 AttrDefId::MacroDefId(it) => { 211 AttrDefId::MacroDefId(it) => it
212 it.ast_id().map_or_else(Default::default, |ast_id| attrs_from_ast(ast_id, db)) 212 .ast_id()
213 } 213 .left()
214 .map_or_else(Default::default, |ast_id| attrs_from_ast(ast_id, db)),
214 AttrDefId::ImplId(it) => attrs_from_item_tree(it.lookup(db).id, db), 215 AttrDefId::ImplId(it) => attrs_from_item_tree(it.lookup(db).id, db),
215 AttrDefId::ConstId(it) => attrs_from_item_tree(it.lookup(db).id, db), 216 AttrDefId::ConstId(it) => attrs_from_item_tree(it.lookup(db).id, db),
216 AttrDefId::StaticId(it) => attrs_from_item_tree(it.lookup(db).id, db), 217 AttrDefId::StaticId(it) => attrs_from_item_tree(it.lookup(db).id, db),