Skip to content

Commit 881c7a6

Browse files
Use the right def_crate for builtin macros
1 parent bb1002b commit 881c7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir_expand/src/hygiene.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Hygiene {
3030
let loc = db.lookup_intern_macro(id);
3131
match loc.def.kind {
3232
MacroDefKind::Declarative => (loc.def.krate, loc.def.local_inner),
33-
MacroDefKind::BuiltIn(_) => (None, false),
33+
MacroDefKind::BuiltIn(_) => (loc.def.krate, false),
3434
MacroDefKind::BuiltInDerive(_) => (None, false),
3535
MacroDefKind::BuiltInEager(_) => (None, false),
3636
MacroDefKind::ProcMacro(_) => (None, false),

0 commit comments

Comments
 (0)