diff options
author | Aleksey Kladov <[email protected]> | 2019-11-24 13:03:02 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-24 13:03:02 +0000 |
commit | 4b74fb1d896ce5a1c8c4c4bf73ad2940fb86abc5 (patch) | |
tree | 1d4d51e200305e5adee78b28a0f86343d3bab0fd /crates/ra_ide_api/src/completion | |
parent | 1956d57ed4896bb29dfcfaed2a5291ec69251f52 (diff) |
Nicer API for attrs
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-rw-r--r-- | crates/ra_ide_api/src/completion/presentation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index 896ad1517..bac3f7582 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs | |||
@@ -288,7 +288,7 @@ impl Completions { | |||
288 | } | 288 | } |
289 | 289 | ||
290 | fn is_deprecated(node: impl HasAttrs, db: &impl HirDatabase) -> bool { | 290 | fn is_deprecated(node: impl HasAttrs, db: &impl HirDatabase) -> bool { |
291 | node.attrs(db).has_atom("deprecated") | 291 | node.attrs(db).by_key("deprecated").exists() |
292 | } | 292 | } |
293 | 293 | ||
294 | fn has_non_default_type_params(def: hir::GenericDef, db: &db::RootDatabase) -> bool { | 294 | fn has_non_default_type_params(def: hir::GenericDef, db: &db::RootDatabase) -> bool { |