Skip to content

Commit

Permalink
fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs
Browse files Browse the repository at this point in the history
  • Loading branch information
roife committed Jun 21, 2024
1 parent 67f7eb5 commit d5bb2f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2784,6 +2784,7 @@ impl From<ModuleDef> for ItemInNs {
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
ItemInNs::Values(module_def)
}
ModuleDef::Macro(it) => ItemInNs::Macros(it),
_ => ItemInNs::Types(module_def),
}
}
Expand Down

0 comments on commit d5bb2f0

Please sign in to comment.