@@ -220,9 +220,9 @@ impl<N: AstIdNode> AstIdLoc for AssocItemLoc<N> {
220220}
221221
222222macro_rules! impl_intern {
223- ( $id: ident, $loc: ident, $intern : ident , $lookup : ident ) => {
223+ ( $id: ident, $loc: ident) => {
224224 impl_intern_key!( $id, $loc) ;
225- impl_intern_lookup!( DefDatabase , $id, $loc, $intern , $lookup ) ;
225+ impl_intern_lookup!( DefDatabase , $id, $loc) ;
226226 } ;
227227}
228228
@@ -249,10 +249,10 @@ macro_rules! impl_loc {
249249}
250250
251251type FunctionLoc = AssocItemLoc < ast:: Fn > ;
252- impl_intern ! ( FunctionId , FunctionLoc , intern_function , lookup_intern_function ) ;
252+ impl_intern ! ( FunctionId , FunctionLoc ) ;
253253
254254type StructLoc = ItemLoc < ast:: Struct > ;
255- impl_intern ! ( StructId , StructLoc , intern_struct , lookup_intern_struct ) ;
255+ impl_intern ! ( StructId , StructLoc ) ;
256256
257257impl StructId {
258258 pub fn fields ( self , db : & dyn DefDatabase ) -> & VariantFields {
@@ -269,7 +269,7 @@ impl StructId {
269269}
270270
271271pub type UnionLoc = ItemLoc < ast:: Union > ;
272- impl_intern ! ( UnionId , UnionLoc , intern_union , lookup_intern_union ) ;
272+ impl_intern ! ( UnionId , UnionLoc ) ;
273273
274274impl UnionId {
275275 pub fn fields ( self , db : & dyn DefDatabase ) -> & VariantFields {
@@ -286,7 +286,7 @@ impl UnionId {
286286}
287287
288288pub type EnumLoc = ItemLoc < ast:: Enum > ;
289- impl_intern ! ( EnumId , EnumLoc , intern_enum , lookup_intern_enum ) ;
289+ impl_intern ! ( EnumId , EnumLoc ) ;
290290
291291impl EnumId {
292292 #[ inline]
@@ -304,13 +304,13 @@ impl EnumId {
304304}
305305
306306type ConstLoc = AssocItemLoc < ast:: Const > ;
307- impl_intern ! ( ConstId , ConstLoc , intern_const , lookup_intern_const ) ;
307+ impl_intern ! ( ConstId , ConstLoc ) ;
308308
309309pub type StaticLoc = AssocItemLoc < ast:: Static > ;
310- impl_intern ! ( StaticId , StaticLoc , intern_static , lookup_intern_static ) ;
310+ impl_intern ! ( StaticId , StaticLoc ) ;
311311
312312pub type TraitLoc = ItemLoc < ast:: Trait > ;
313- impl_intern ! ( TraitId , TraitLoc , intern_trait , lookup_intern_trait ) ;
313+ impl_intern ! ( TraitId , TraitLoc ) ;
314314
315315impl TraitId {
316316 #[ inline]
@@ -320,10 +320,10 @@ impl TraitId {
320320}
321321
322322type TypeAliasLoc = AssocItemLoc < ast:: TypeAlias > ;
323- impl_intern ! ( TypeAliasId , TypeAliasLoc , intern_type_alias , lookup_intern_type_alias ) ;
323+ impl_intern ! ( TypeAliasId , TypeAliasLoc ) ;
324324
325325type ImplLoc = ItemLoc < ast:: Impl > ;
326- impl_intern ! ( ImplId , ImplLoc , intern_impl , lookup_intern_impl ) ;
326+ impl_intern ! ( ImplId , ImplLoc ) ;
327327
328328impl ImplId {
329329 #[ inline]
@@ -353,13 +353,13 @@ pub struct BuiltinDeriveImplId {
353353}
354354
355355type UseLoc = ItemLoc < ast:: Use > ;
356- impl_intern ! ( UseId , UseLoc , intern_use , lookup_intern_use ) ;
356+ impl_intern ! ( UseId , UseLoc ) ;
357357
358358type ExternCrateLoc = ItemLoc < ast:: ExternCrate > ;
359- impl_intern ! ( ExternCrateId , ExternCrateLoc , intern_extern_crate , lookup_intern_extern_crate ) ;
359+ impl_intern ! ( ExternCrateId , ExternCrateLoc ) ;
360360
361361type ExternBlockLoc = ItemLoc < ast:: ExternBlock > ;
362- impl_intern ! ( ExternBlockId , ExternBlockLoc , intern_extern_block , lookup_intern_extern_block ) ;
362+ impl_intern ! ( ExternBlockId , ExternBlockLoc ) ;
363363
364364impl ExternBlockId {
365365 pub fn abi ( self , db : & dyn DefDatabase ) -> ExternAbi {
@@ -373,7 +373,7 @@ pub struct EnumVariantLoc {
373373 pub parent : EnumId ,
374374 pub index : u32 ,
375375}
376- impl_intern ! ( EnumVariantId , EnumVariantLoc , intern_enum_variant , lookup_intern_enum_variant ) ;
376+ impl_intern ! ( EnumVariantId , EnumVariantLoc ) ;
377377impl_loc ! ( EnumVariantLoc , id: Variant , parent: EnumId ) ;
378378
379379impl EnumVariantId {
@@ -398,7 +398,7 @@ pub struct Macro2Loc {
398398 pub allow_internal_unsafe : bool ,
399399 pub edition : Edition ,
400400}
401- impl_intern ! ( Macro2Id , Macro2Loc , intern_macro2 , lookup_intern_macro2 ) ;
401+ impl_intern ! ( Macro2Id , Macro2Loc ) ;
402402impl_loc ! ( Macro2Loc , id: MacroDef , container: ModuleId ) ;
403403
404404#[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash ) ]
@@ -409,7 +409,7 @@ pub struct MacroRulesLoc {
409409 pub flags : MacroRulesLocFlags ,
410410 pub edition : Edition ,
411411}
412- impl_intern ! ( MacroRulesId , MacroRulesLoc , intern_macro_rules , lookup_intern_macro_rules ) ;
412+ impl_intern ! ( MacroRulesId , MacroRulesLoc ) ;
413413impl_loc ! ( MacroRulesLoc , id: MacroRules , container: ModuleId ) ;
414414
415415bitflags:: bitflags! {
@@ -437,7 +437,7 @@ pub struct ProcMacroLoc {
437437 pub kind : ProcMacroKind ,
438438 pub edition : Edition ,
439439}
440- impl_intern ! ( ProcMacroId , ProcMacroLoc , intern_proc_macro , lookup_intern_proc_macro ) ;
440+ impl_intern ! ( ProcMacroId , ProcMacroLoc ) ;
441441impl_loc ! ( ProcMacroLoc , id: Fn , container: ModuleId ) ;
442442
443443#[ derive( Debug , Hash , PartialEq , Eq , Clone ) ]
@@ -446,7 +446,7 @@ pub struct BlockLoc {
446446 /// The containing module.
447447 pub module : ModuleId ,
448448}
449- impl_intern ! ( BlockId , BlockLoc , intern_block , lookup_intern_block ) ;
449+ impl_intern ! ( BlockId , BlockLoc ) ;
450450
451451#[ salsa_macros:: tracked( debug) ]
452452#[ derive( PartialOrd , Ord ) ]
0 commit comments