diff options
Diffstat (limited to 'src/resolve/use.cpp')
-rw-r--r-- | src/resolve/use.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resolve/use.cpp b/src/resolve/use.cpp index d1b96280..8a9a3167 100644 --- a/src/resolve/use.cpp +++ b/src/resolve/use.cpp @@ -751,6 +751,14 @@ namespace { { rv.macro = ::AST::PathBinding_Macro::make_MacroRules({ &ec, &*it->second }); } + + { + auto it = ::std::find_if( ec.m_hir->m_proc_macros.begin(), ec.m_hir->m_proc_macros.end(), [&](const auto& pm){ return pm.name == name;} ); + if( it != ec.m_hir->m_proc_macros.end() ) + { + rv.macro = ::AST::PathBinding_Macro::make_ProcMacro({ &ec, name }); + } + } } return rv; } |