diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-06 21:11:42 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-06 21:11:42 +0000 |
commit | 14e19c0df19eb4ce71bbd24114452157c65c8209 (patch) | |
tree | 3cf99a99d4e0238b60ab5b73941798b33f2eb778 /crates/ra_syntax/src/lib.rs | |
parent | ef988492ee8f9718fdde15cec6d96e4c4cfef3cf (diff) | |
parent | cb3767f28a2f9e443b816b17d5d07b6a1cff90ab (diff) |
Merge #2179
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 :smile:
Co-authored-by: Martin Asquino <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
0 files changed, 0 insertions, 0 deletions