summaryrefslogtreecommitdiff
path: root/src/synexts/derive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/synexts/derive.cpp')
-rw-r--r--src/synexts/derive.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/synexts/derive.cpp b/src/synexts/derive.cpp
index 749da870..b8741cfe 100644
--- a/src/synexts/derive.cpp
+++ b/src/synexts/derive.cpp
@@ -113,8 +113,10 @@ static const Deriver* find_impl(const ::std::string& trait_name)
template<typename T>
static void derive_item(AST::Module& mod, const AST::MetaItem& attr, const AST::Path& path, const T& item)
{
- if( !attr.has_sub_items() )
- throw CompileError::Generic("#[derive()] requires a list of known traits to derive");
+ if( !attr.has_sub_items() ) {
+ //throw CompileError::Generic("#[derive()] requires a list of known traits to derive");
+ return ;
+ }
DEBUG("path = " << path);
bool fail = false;