mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
![]() 2179: Use HirDatabase to compute `is_deprecated` r=matklad a=martskins This PR fixes #2167 by introducing `attributes_query` and adding `fn attrs(&self, def: crate::AttrDef) -> Option<Arc<[Attr]>>;` to the `DefDatabase` trait. I'm a little concerned about the two spots in `attributes_query` where code is repeated, but I couldn't figure out a way to avoid that, so.. I welcome suggestions 😄 Co-authored-by: Martin Asquino <martin.asquino@gmail.com> |
||
---|---|---|
.. | ||
code_model | ||
expr | ||
ty | ||
adt.rs | ||
code_model.rs | ||
db.rs | ||
debug.rs | ||
diagnostics.rs | ||
expr.rs | ||
from_id.rs | ||
from_source.rs | ||
generics.rs | ||
ids.rs | ||
impl_block.rs | ||
lang_item.rs | ||
lib.rs | ||
marks.rs | ||
resolve.rs | ||
source_binder.rs | ||
test_db.rs | ||
traits.rs | ||
ty.rs | ||
type_alias.rs | ||
util.rs |