@@ -14,7 +14,7 @@ use crate::{
1414 body:: { scope:: ExprScopes , Body , BodySourceMap } ,
1515 data:: {
1616 ConstData , FunctionData , ImplData , Macro2Data , MacroRulesData , ProcMacroData , StaticData ,
17- TraitData , TypeAliasData ,
17+ TraitAliasData , TraitData , TypeAliasData ,
1818 } ,
1919 generics:: GenericParams ,
2020 import_map:: ImportMap ,
@@ -25,8 +25,8 @@ use crate::{
2525 AttrDefId , BlockId , BlockLoc , ConstId , ConstLoc , DefWithBodyId , EnumId , EnumLoc , ExternBlockId ,
2626 ExternBlockLoc , FunctionId , FunctionLoc , GenericDefId , ImplId , ImplLoc , LocalEnumVariantId ,
2727 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 ,
3030} ;
3131
3232#[ salsa:: query_group( InternDatabaseStorage ) ]
@@ -46,6 +46,8 @@ pub trait InternDatabase: SourceDatabase {
4646 #[ salsa:: interned]
4747 fn intern_trait ( & self , loc : TraitLoc ) -> TraitId ;
4848 #[ salsa:: interned]
49+ fn intern_trait_alias ( & self , loc : TraitAliasLoc ) -> TraitAliasId ;
50+ #[ salsa:: interned]
4951 fn intern_type_alias ( & self , loc : TypeAliasLoc ) -> TypeAliasId ;
5052 #[ salsa:: interned]
5153 fn intern_impl ( & self , loc : ImplLoc ) -> ImplId ;
@@ -125,6 +127,9 @@ pub trait DefDatabase: InternDatabase + AstDatabase + Upcast<dyn AstDatabase> {
125127 #[ salsa:: invoke( TraitData :: trait_data_with_diagnostics_query) ]
126128 fn trait_data_with_diagnostics ( & self , tr : TraitId ) -> ( Arc < TraitData > , Arc < [ DefDiagnostic ] > ) ;
127129
130+ #[ salsa:: invoke( TraitAliasData :: trait_alias_query) ]
131+ fn trait_alias_data ( & self , e : TraitAliasId ) -> Arc < TraitAliasData > ;
132+
128133 #[ salsa:: invoke( TypeAliasData :: type_alias_data_query) ]
129134 fn type_alias_data ( & self , e : TypeAliasId ) -> Arc < TypeAliasData > ;
130135
0 commit comments