Use the right def_crate for builtin macros

This commit is contained in:
Jonas Schievink 2020-12-07 19:37:38 +01:00
parent bb1002b8b1
commit 881c7a680b

View file

@ -30,7 +30,7 @@ impl Hygiene {
let loc = db.lookup_intern_macro(id);
match loc.def.kind {
MacroDefKind::Declarative => (loc.def.krate, loc.def.local_inner),
MacroDefKind::BuiltIn(_) => (None, false),
MacroDefKind::BuiltIn(_) => (loc.def.krate, false),
MacroDefKind::BuiltInDerive(_) => (None, false),
MacroDefKind::BuiltInEager(_) => (None, false),
MacroDefKind::ProcMacro(_) => (None, false),