diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-25 16:18:35 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-25 16:18:35 +0100 |
commit | ba7286345256eb1140853dc0daa3c276e2ddcbbe (patch) | |
tree | e5f328bc2e9794cc93413ecba4a121f8f6f020ad /crates/ra_hir_def/src/attr.rs | |
parent | 96d335d578984b42c2e00c715c924bceca391a6c (diff) | |
parent | dad2f75b91bcc6ac7620326fec082aca7edea7ce (diff) |
Merge #5063
5063: Store field/variant attrs in ItemTree and use it for adt.rs queries r=jonas-schievink a=jonas-schievink
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/attr.rs')
-rw-r--r-- | crates/ra_hir_def/src/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/ra_hir_def/src/attr.rs index 197737ffc..e228e2145 100644 --- a/crates/ra_hir_def/src/attr.rs +++ b/crates/ra_hir_def/src/attr.rs | |||
@@ -208,5 +208,5 @@ where | |||
208 | fn attrs_from_item_tree<N: ItemTreeNode>(id: ItemTreeId<N>, db: &dyn DefDatabase) -> Attrs { | 208 | fn attrs_from_item_tree<N: ItemTreeNode>(id: ItemTreeId<N>, db: &dyn DefDatabase) -> Attrs { |
209 | let tree = db.item_tree(id.file_id); | 209 | let tree = db.item_tree(id.file_id); |
210 | let mod_item = N::id_to_mod_item(id.value); | 210 | let mod_item = N::id_to_mod_item(id.value); |
211 | tree.attrs(mod_item).clone() | 211 | tree.attrs(mod_item.into()).clone() |
212 | } | 212 | } |