summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-06 18:05:35 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-06 18:05:35 +0800
commit1573cf55ff6f38f51716bfe92b70341fa5489c74 (patch)
treea31226b085674e37545f161c75df94f8975e7a99 /src/expand/mod.cpp
parent21a5e38857a90780654358a4b47abb0b04a3fc60 (diff)
downloadmrust-1573cf55ff6f38f51716bfe92b70341fa5489c74.tar.gz
Debug and fix `use` resolution
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r--src/expand/mod.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index 6598af4e..ee6fcfe5 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -9,17 +9,13 @@
::std::map< ::std::string, ::std::unique_ptr<ExpandDecorator> > g_decorators;
::std::map< ::std::string, ::std::unique_ptr<ExpandProcMacro> > g_macros;
-void init() __attribute__((constructor(101)));
-void init()
-{
-}
-
void Register_Synext_Decorator(::std::string name, ::std::unique_ptr<ExpandDecorator> handler) {
g_decorators[name] = mv$(handler);
}
void Expand_Decorators_Mod(::AST::Crate& crate, bool is_before_macros, ::AST::Path modpath, ::AST::Module& mod)
{
+ TRACE_FUNCTION_F("modpath = " << modpath);
for( auto& i : mod.items() )
{
::AST::Path path = modpath + i.name;