Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/hir/src/semantics.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs
index 51510dd400..d17a33cc2e 100644
--- a/crates/hir/src/semantics.rs
+++ b/crates/hir/src/semantics.rs
@@ -345,7 +345,13 @@ impl<'db> SemanticsImpl<'db> {
) => {
// Do nothing and allow matching macros to be expanded
}
- _ => return None,
+
+ hir_expand::MacroDefKind::BuiltIn(_, _)
+ | hir_expand::MacroDefKind::BuiltInAttr(_, _)
+ | hir_expand::MacroDefKind::BuiltInEager(_, _)
+ | hir_expand::MacroDefKind::BuiltInDerive(_, _) => return None,
+
+ _ => (),
}
let node = self.parse_or_expand(file_id.into());