aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-03-22 14:56:59 +0000
committerLukas Wirth <[email protected]>2021-03-23 10:32:14 +0000
commit7c4eb66c1acf10216fa866e05d646bdaea229ded (patch)
tree89df7b614ec5f88d7a4e43313e84d62c12cbceee /crates/ide_db
parentbad4e48672f928644457cece3b7e21dd78ea1e9b (diff)
Merge hir::MacroDef::is_* into hir::MacroDef::kind
Diffstat (limited to 'crates/ide_db')
-rw-r--r--crates/ide_db/src/search.rs2
1 files changed, 1 insertions, 1 deletions
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 {
257 }; 257 };
258 258
259 if let Definition::Macro(macro_def) = self { 259 if let Definition::Macro(macro_def) = self {
260 if macro_def.is_declarative() { 260 if macro_def.kind() == hir::MacroKind::Declarative {
261 return if macro_def.attrs(db).by_key("macro_export").exists() { 261 return if macro_def.attrs(db).by_key("macro_export").exists() {
262 rev_dep_scope() 262 rev_dep_scope()
263 } else { 263 } else {