mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Make DefDatabase::lang_attr
transparent
This commit is contained in:
parent
06aaf20f10
commit
9673915045
3 changed files with 3 additions and 3 deletions
|
@ -210,6 +210,7 @@ pub trait DefDatabase: InternDatabase + ExpandDatabase + Upcast<dyn ExpandDataba
|
||||||
#[salsa::invoke(AttrsWithOwner::attrs_query)]
|
#[salsa::invoke(AttrsWithOwner::attrs_query)]
|
||||||
fn attrs(&self, def: AttrDefId) -> Attrs;
|
fn attrs(&self, def: AttrDefId) -> Attrs;
|
||||||
|
|
||||||
|
#[salsa::transparent]
|
||||||
#[salsa::invoke(lang_item::lang_attr_query)]
|
#[salsa::invoke(lang_item::lang_attr_query)]
|
||||||
fn lang_attr(&self, def: AttrDefId) -> Option<LangItem>;
|
fn lang_attr(&self, def: AttrDefId) -> Option<LangItem>;
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ pub use hir_def::db::{
|
||||||
InternExternBlockQuery, InternExternCrateQuery, InternFunctionQuery, InternImplQuery,
|
InternExternBlockQuery, InternExternCrateQuery, InternFunctionQuery, InternImplQuery,
|
||||||
InternInTypeConstQuery, InternMacro2Query, InternMacroRulesQuery, InternProcMacroQuery,
|
InternInTypeConstQuery, InternMacro2Query, InternMacroRulesQuery, InternProcMacroQuery,
|
||||||
InternStaticQuery, InternStructQuery, InternTraitAliasQuery, InternTraitQuery,
|
InternStaticQuery, InternStructQuery, InternTraitAliasQuery, InternTraitQuery,
|
||||||
InternTypeAliasQuery, InternUnionQuery, InternUseQuery, LangAttrQuery, LangItemQuery,
|
InternTypeAliasQuery, InternUnionQuery, InternUseQuery, LangItemQuery, Macro2DataQuery,
|
||||||
Macro2DataQuery, MacroRulesDataQuery, ProcMacroDataQuery, StaticDataQuery, StructDataQuery,
|
MacroRulesDataQuery, ProcMacroDataQuery, StaticDataQuery, StructDataQuery,
|
||||||
StructDataWithDiagnosticsQuery, TraitAliasDataQuery, TraitDataQuery,
|
StructDataWithDiagnosticsQuery, TraitAliasDataQuery, TraitDataQuery,
|
||||||
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataQuery,
|
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataQuery,
|
||||||
UnionDataWithDiagnosticsQuery, VariantsAttrsQuery, VariantsAttrsSourceMapQuery,
|
UnionDataWithDiagnosticsQuery, VariantsAttrsQuery, VariantsAttrsSourceMapQuery,
|
||||||
|
|
|
@ -172,7 +172,6 @@ impl RootDatabase {
|
||||||
hir::db::CrateSupportsNoStdQuery
|
hir::db::CrateSupportsNoStdQuery
|
||||||
hir::db::BlockItemTreeQueryQuery
|
hir::db::BlockItemTreeQueryQuery
|
||||||
hir::db::ExternCrateDeclDataQuery
|
hir::db::ExternCrateDeclDataQuery
|
||||||
hir::db::LangAttrQuery
|
|
||||||
hir::db::InternAnonymousConstQuery
|
hir::db::InternAnonymousConstQuery
|
||||||
hir::db::InternExternCrateQuery
|
hir::db::InternExternCrateQuery
|
||||||
hir::db::InternInTypeConstQuery
|
hir::db::InternInTypeConstQuery
|
||||||
|
|
Loading…
Reference in a new issue