mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Move attrs query to hir_def
This commit is contained in:
parent
81bfbd26be
commit
552ba868af
10 changed files with 202 additions and 123 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use hir_def::attr::Attrs;
|
||||
use ra_db::salsa;
|
||||
use ra_syntax::SmolStr;
|
||||
|
||||
|
@ -46,9 +45,6 @@ pub trait DefDatabase: HirDebugDatabase + DefDatabase2 {
|
|||
|
||||
#[salsa::invoke(crate::code_model::docs::documentation_query)]
|
||||
fn documentation(&self, def: crate::DocDef) -> Option<crate::Documentation>;
|
||||
|
||||
#[salsa::invoke(crate::code_model::attrs::attributes_query)]
|
||||
fn attrs(&self, def: crate::AttrDef) -> Attrs;
|
||||
}
|
||||
|
||||
#[salsa::query_group(HirDatabaseStorage)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue