From 7c4eb66c1acf10216fa866e05d646bdaea229ded Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 22 Mar 2021 15:56:59 +0100 Subject: Merge hir::MacroDef::is_* into hir::MacroDef::kind --- crates/ide_db/src/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_db/src') diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs index 5fdcb13cf..ff958c757 100644 --- a/crates/ide_db/src/search.rs +++ b/crates/ide_db/src/search.rs @@ -257,7 +257,7 @@ impl Definition { }; if let Definition::Macro(macro_def) = self { - if macro_def.is_declarative() { + if macro_def.kind() == hir::MacroKind::Declarative { return if macro_def.attrs(db).by_key("macro_export").exists() { rev_dep_scope() } else { -- cgit v1.2.3