summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-24 13:35:27 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-24 13:35:27 +0800
commit71737150d4a6bd736257dda457398c77e10095bd (patch)
treead793603ab2e0ca532d84b09ecf0f145a0eb80b2 /src
parent5ab85713e1a2d49818717ce4a61beb80ba53ba0b (diff)
downloadmrust-71737150d4a6bd736257dda457398c77e10095bd.tar.gz
Resolve Absolute - Emit UfcsUnknown instead of UfcsInherent when splitting multi-node UFCS
Diffstat (limited to 'src')
-rw-r--r--src/resolve/absolute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index 64c446ee..cb02914a 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -538,7 +538,7 @@ void Resolve_Absolute_Path_BindUFCS(Context& context, const Span& sp, Context::L
auto inner_path = mv$(path);
inner_path.m_class.as_UFCS().nodes.push_back( mv$(nodes.front()) );
nodes.erase( nodes.begin() );
- path = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(span, mv$(inner_path)), mv$(nodes) );
+ path = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(span, mv$(inner_path)), ::AST::Path(), mv$(nodes) );
}
const auto& ufcs = path.m_class.as_UFCS();