diff options
Diffstat (limited to 'crates/ra_hir_def/src/db.rs')
-rw-r--r-- | crates/ra_hir_def/src/db.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs index 2c660ab88..e91e741bb 100644 --- a/crates/ra_hir_def/src/db.rs +++ b/crates/ra_hir_def/src/db.rs | |||
@@ -7,6 +7,7 @@ use ra_syntax::ast; | |||
7 | 7 | ||
8 | use crate::{ | 8 | use crate::{ |
9 | adt::{EnumData, StructData}, | 9 | adt::{EnumData, StructData}, |
10 | attr::Attrs, | ||
10 | body::{scope::ExprScopes, Body, BodySourceMap}, | 11 | body::{scope::ExprScopes, Body, BodySourceMap}, |
11 | data::{ConstData, FunctionData, ImplData, TraitData, TypeAliasData}, | 12 | data::{ConstData, FunctionData, ImplData, TraitData, TypeAliasData}, |
12 | generics::GenericParams, | 13 | generics::GenericParams, |
@@ -14,7 +15,7 @@ use crate::{ | |||
14 | raw::{ImportSourceMap, RawItems}, | 15 | raw::{ImportSourceMap, RawItems}, |
15 | CrateDefMap, | 16 | CrateDefMap, |
16 | }, | 17 | }, |
17 | ConstId, DefWithBodyId, EnumId, FunctionId, GenericDefId, ImplId, ItemLoc, StaticId, | 18 | AttrDefId, ConstId, DefWithBodyId, EnumId, FunctionId, GenericDefId, ImplId, ItemLoc, StaticId, |
18 | StructOrUnionId, TraitId, TypeAliasId, | 19 | StructOrUnionId, TraitId, TypeAliasId, |
19 | }; | 20 | }; |
20 | 21 | ||
@@ -87,4 +88,7 @@ pub trait DefDatabase2: InternDatabase + AstDatabase { | |||
87 | 88 | ||
88 | #[salsa::invoke(GenericParams::generic_params_query)] | 89 | #[salsa::invoke(GenericParams::generic_params_query)] |
89 | fn generic_params(&self, def: GenericDefId) -> Arc<GenericParams>; | 90 | fn generic_params(&self, def: GenericDefId) -> Arc<GenericParams>; |
91 | |||
92 | #[salsa::invoke(Attrs::attrs_query)] | ||
93 | fn attrs(&self, def: AttrDefId) -> Attrs; | ||
90 | } | 94 | } |