summaryrefslogtreecommitdiff
path: root/src/resolve/absolute.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-31 18:33:29 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-31 18:33:29 +0800
commit375607009b31a21113616ead12716007789f9435 (patch)
tree4418f4d7d6cc4c8175d64f7717de8ed01689ba1b /src/resolve/absolute.cpp
parent4455197bebd63090768c9eee8f53cf225e44b64e (diff)
downloadmrust-375607009b31a21113616ead12716007789f9435.tar.gz
Resolve Abs - Fix primitive hack
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r--src/resolve/absolute.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index cf7393ab..15401bc9 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1111,8 +1111,12 @@ void Resolve_Absolute_Path(/*const*/ Context& context, const Span& sp, Context::
if( !found )
{
//TODO(sp, "Switch back to primitive from " << p << " for " << path);
- p = ::AST::Path( ::AST::Path::TagLocal(), e.nodes[0].name() );
+ //p = ::AST::Path( ::AST::Path::TagLocal(), e.nodes[0].name() );
+ auto ct = coretype_fromstring(e.nodes[0].name());
+ p = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(Span("-",0,0,0,0), ct), ::AST::Path(), ::std::vector< ::AST::PathNode>() );
}
+
+ DEBUG("Primitive module hack yeilded " << p);
)
}