From 51b138cc79a51827d224ae222e28bf79c2831bed Mon Sep 17 00:00:00 2001 From: roife Date: Fri, 21 Jun 2024 21:05:14 +0800 Subject: [PATCH] fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs --- src/tools/rust-analyzer/crates/hir/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/rust-analyzer/crates/hir/src/lib.rs b/src/tools/rust-analyzer/crates/hir/src/lib.rs index 05fa7c4964e..c1fe8a8b316 100644 --- a/src/tools/rust-analyzer/crates/hir/src/lib.rs +++ b/src/tools/rust-analyzer/crates/hir/src/lib.rs @@ -2784,6 +2784,7 @@ fn from(module_def: ModuleDef) -> Self { ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => { ItemInNs::Values(module_def) } + ModuleDef::Macro(it) => ItemInNs::Macros(it), _ => ItemInNs::Types(module_def), } }