summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-21 11:51:02 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-21 11:51:02 +0800
commit871c53c3fcfec69d3a3cf9ec19ef225bb8149201 (patch)
tree579b74c7df27ed48a1656a64ff40511ca9f83cb8 /src/ast
parent6e8fa812d8ab6c148213eebc716f7433e6e6b557 (diff)
downloadmrust-871c53c3fcfec69d3a3cf9ec19ef225bb8149201.tar.gz
Expand - Add attributes to impl blocks
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/ast.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 06ff857e..7f6a61ff 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -376,6 +376,7 @@ public:
m_trait( move(trait_type) ),
m_type( move(impl_type) )
{}
+ ImplDef& operator=(ImplDef&&) = default;
// Accessors
const MetaItems& attrs() const { return m_attrs; }
@@ -413,6 +414,7 @@ public:
Impl(MetaItems attrs, GenericParams params, TypeRef impl_type, Path trait_type):
m_def( move(attrs), move(params), move(trait_type), move(impl_type) )
{}
+ Impl& operator=(Impl&&) = default;
void add_function(bool is_public, ::std::string name, Function fcn);
void add_type(bool is_public, ::std::string name, TypeRef type);