summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-23 10:49:16 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-23 10:49:16 +0800
commit767b08186f2a111c8b6cbeee542d49bd6017dcc7 (patch)
treed141a6a38b4942d6b65b23e2373b8e16db2c53e6
parentd68a71d08bed4ec2a8009562642066ce64068114 (diff)
downloadmrust-767b08186f2a111c8b6cbeee542d49bd6017dcc7.tar.gz
AST - Fix uninitialised receiver type
-rw-r--r--src/ast/ast.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index 29ddf07f..f8d5598a 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -304,6 +304,7 @@ Module::ItemRef Module::find_item(const ::std::string& needle, bool allow_leaves
Function::Function(Span sp, GenericParams params, TypeRef ret_type, Arglist args):
m_span(sp),
+ m_receiver(Receiver::Free),
m_params( move(params) ),
m_rettype( move(ret_type) ),
m_args( move(args) )