mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
internal: Put Attrs behind a query instead of AttsWithOwner
This commit is contained in:
parent
10e0aaf284
commit
ed3a5eac3c
4 changed files with 23 additions and 9 deletions
|
@ -41,7 +41,7 @@ macro_rules! impl_has_attrs {
|
|||
impl HasAttrs for $def {
|
||||
fn attrs(self, db: &dyn HirDatabase) -> AttrsWithOwner {
|
||||
let def = AttrDefId::$def_id(self.into());
|
||||
db.attrs(def)
|
||||
db.attrs_with_owner(def)
|
||||
}
|
||||
fn docs(self, db: &dyn HirDatabase) -> Option<Documentation> {
|
||||
let def = AttrDefId::$def_id(self.into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue