Skip to content

Commit d5bb2f0

Browse files
committed
fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs
1 parent 67f7eb5 commit d5bb2f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,6 +2784,7 @@ impl From<ModuleDef> for ItemInNs {
27842784
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
27852785
ItemInNs::Values(module_def)
27862786
}
2787+
ModuleDef::Macro(it) => ItemInNs::Macros(it),
27872788
_ => ItemInNs::Types(module_def),
27882789
}
27892790
}

0 commit comments

Comments
 (0)