Use the right def_crate
for builtin macros
This commit is contained in:
parent
bb1002b8b1
commit
881c7a680b
@ -30,7 +30,7 @@ pub fn new(db: &dyn AstDatabase, file_id: HirFileId) -> 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),
|
||||
|
Loading…
Reference in New Issue
Block a user