mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs
This commit is contained in:
parent
9b8b6f92b2
commit
51b138cc79
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user