Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9673915

Browse files
committed
Make DefDatabase::lang_attr transparent
1 parent 06aaf20 commit 9673915

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/hir-def/src/db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ pub trait DefDatabase: InternDatabase + ExpandDatabase + Upcast<dyn ExpandDataba
210210
#[salsa::invoke(AttrsWithOwner::attrs_query)]
211211
fn attrs(&self, def: AttrDefId) -> Attrs;
212212

213+
#[salsa::transparent]
213214
#[salsa::invoke(lang_item::lang_attr_query)]
214215
fn lang_attr(&self, def: AttrDefId) -> Option<LangItem>;
215216

crates/hir/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pub use hir_def::db::{
1515
InternExternBlockQuery, InternExternCrateQuery, InternFunctionQuery, InternImplQuery,
1616
InternInTypeConstQuery, InternMacro2Query, InternMacroRulesQuery, InternProcMacroQuery,
1717
InternStaticQuery, InternStructQuery, InternTraitAliasQuery, InternTraitQuery,
18-
InternTypeAliasQuery, InternUnionQuery, InternUseQuery, LangAttrQuery, LangItemQuery,
19-
Macro2DataQuery, MacroRulesDataQuery, ProcMacroDataQuery, StaticDataQuery, StructDataQuery,
18+
InternTypeAliasQuery, InternUnionQuery, InternUseQuery, LangItemQuery, Macro2DataQuery,
19+
MacroRulesDataQuery, ProcMacroDataQuery, StaticDataQuery, StructDataQuery,
2020
StructDataWithDiagnosticsQuery, TraitAliasDataQuery, TraitDataQuery,
2121
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataQuery,
2222
UnionDataWithDiagnosticsQuery, VariantsAttrsQuery, VariantsAttrsSourceMapQuery,

crates/ide-db/src/apply_change.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ impl RootDatabase {
172172
hir::db::CrateSupportsNoStdQuery
173173
hir::db::BlockItemTreeQueryQuery
174174
hir::db::ExternCrateDeclDataQuery
175-
hir::db::LangAttrQuery
176175
hir::db::InternAnonymousConstQuery
177176
hir::db::InternExternCrateQuery
178177
hir::db::InternInTypeConstQuery

0 commit comments

Comments
 (0)