diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-06-11 21:47:30 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-06-11 21:47:30 +0800 |
commit | b653b8c5d25b0626d51f0d85c139d47f649db37b (patch) | |
tree | fbece912b4a40f05941600b6e59f407a64acb957 /src/hir_typeck | |
parent | b3af24cd9e3715097997c8215f82f1184586f542 (diff) | |
download | mrust-b653b8c5d25b0626d51f0d85c139d47f649db37b.tar.gz |
Typecheck Static - Fix bug in needs_drop_glue
Diffstat (limited to 'src/hir_typeck')
-rw-r--r-- | src/hir_typeck/static.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp index 8a4dba50..0067eb7f 100644 --- a/src/hir_typeck/static.cpp +++ b/src/hir_typeck/static.cpp @@ -1670,6 +1670,7 @@ bool StaticTraitResolve::type_needs_drop_glue(const Span& sp, const ::HIR::TypeR TU_MATCH(::HIR::TypeRef::Data, (ty.m_data), (e), (Generic, + // TODO: Is this an error? return true; ), (Path, @@ -1797,7 +1798,7 @@ bool StaticTraitResolve::type_needs_drop_glue(const Span& sp, const ::HIR::TypeR (Tuple, for(const auto& ty : e) { - if( !type_needs_drop_glue(sp, ty) ) + if( type_needs_drop_glue(sp, ty) ) return true; } return false; |