mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Use the right def_crate
for builtin macros
This commit is contained in:
parent
bb1002b8b1
commit
881c7a680b
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue