@@ -14,7 +14,7 @@ use crate::{
14
14
body:: { scope:: ExprScopes , Body , BodySourceMap } ,
15
15
data:: {
16
16
ConstData , FunctionData , ImplData , Macro2Data , MacroRulesData , ProcMacroData , StaticData ,
17
- TraitData , TypeAliasData ,
17
+ TraitAliasData , TraitData , TypeAliasData ,
18
18
} ,
19
19
generics:: GenericParams ,
20
20
import_map:: ImportMap ,
@@ -25,8 +25,8 @@ use crate::{
25
25
AttrDefId , BlockId , BlockLoc , ConstId , ConstLoc , DefWithBodyId , EnumId , EnumLoc , ExternBlockId ,
26
26
ExternBlockLoc , FunctionId , FunctionLoc , GenericDefId , ImplId , ImplLoc , LocalEnumVariantId ,
27
27
LocalFieldId , Macro2Id , Macro2Loc , MacroRulesId , MacroRulesLoc , ProcMacroId , ProcMacroLoc ,
28
- StaticId , StaticLoc , StructId , StructLoc , TraitId , TraitLoc , TypeAliasId , TypeAliasLoc ,
29
- UnionId , UnionLoc , VariantId ,
28
+ StaticId , StaticLoc , StructId , StructLoc , TraitAliasId , TraitAliasLoc , TraitId , TraitLoc ,
29
+ TypeAliasId , TypeAliasLoc , UnionId , UnionLoc , VariantId ,
30
30
} ;
31
31
32
32
#[ salsa:: query_group( InternDatabaseStorage ) ]
@@ -46,6 +46,8 @@ pub trait InternDatabase: SourceDatabase {
46
46
#[ salsa:: interned]
47
47
fn intern_trait ( & self , loc : TraitLoc ) -> TraitId ;
48
48
#[ salsa:: interned]
49
+ fn intern_trait_alias ( & self , loc : TraitAliasLoc ) -> TraitAliasId ;
50
+ #[ salsa:: interned]
49
51
fn intern_type_alias ( & self , loc : TypeAliasLoc ) -> TypeAliasId ;
50
52
#[ salsa:: interned]
51
53
fn intern_impl ( & self , loc : ImplLoc ) -> ImplId ;
@@ -125,6 +127,9 @@ pub trait DefDatabase: InternDatabase + AstDatabase + Upcast<dyn AstDatabase> {
125
127
#[ salsa:: invoke( TraitData :: trait_data_with_diagnostics_query) ]
126
128
fn trait_data_with_diagnostics ( & self , tr : TraitId ) -> ( Arc < TraitData > , Arc < [ DefDiagnostic ] > ) ;
127
129
130
+ #[ salsa:: invoke( TraitAliasData :: trait_alias_query) ]
131
+ fn trait_alias_data ( & self , e : TraitAliasId ) -> Arc < TraitAliasData > ;
132
+
128
133
#[ salsa:: invoke( TypeAliasData :: type_alias_data_query) ]
129
134
fn type_alias_data ( & self , e : TypeAliasId ) -> Arc < TypeAliasData > ;
130
135
0 commit comments