summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-05 11:33:52 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-05 11:33:52 +0800
commite10c279836b0f5edac588a90dc1c42177bb7c48d (patch)
tree864d8b6032c355be7a770ccc497540254127366e /src/expand/mod.cpp
parentdf6b00d53966d9cf30e5ef959dbb18005f44fcbf (diff)
downloadmrust-e10c279836b0f5edac588a90dc1c42177bb7c48d.tar.gz
Resolve+Typecheck - Fix trait default parameters
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r--src/expand/mod.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index 7292eaa5..5696ccfe 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -512,6 +512,7 @@ struct CExpandExpr:
auto path_Ok = ::AST::Path(core_crate, {::AST::PathNode("result"), ::AST::PathNode("Result"), ::AST::PathNode("Ok")});
auto path_Err = ::AST::Path(core_crate, {::AST::PathNode("result"), ::AST::PathNode("Result"), ::AST::PathNode("Err")});
auto path_From = ::AST::Path(core_crate, {::AST::PathNode("convert"), ::AST::PathNode("From")});
+ path_From.nodes().back().args().m_types.push_back( ::TypeRef() );
// Desugars into
// ```