diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-16 22:34:35 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-16 22:34:35 +0800 |
commit | 67631955043111889b30e1803abb1ec24ef6239a (patch) | |
tree | 0e524a051990c2ce477ecf06183614a61bc51c31 | |
parent | 71d15c624b816309ebf81015f48e9a951216f485 (diff) | |
download | mrust-67631955043111889b30e1803abb1ec24ef6239a.tar.gz |
HIR Const Eval - Remove error tripped by serde derive
-rw-r--r-- | src/hir_conv/constant_evaluation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp index f23d8e65..5751b351 100644 --- a/src/hir_conv/constant_evaluation.cpp +++ b/src/hir_conv/constant_evaluation.cpp @@ -1001,7 +1001,8 @@ namespace { const_cast<::HIR::ExprNode&>(expr).visit(v); if( v.m_rv.is_Invalid() ) { - BUG(sp, "Expression did not yeild a literal"); + // NOTE: Removed, because of tricks serde_derive does + //BUG(sp, "Expression did not yeild a literal"); } return mv$(v.m_rv); |