summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-23 08:50:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-23 08:50:23 +0800
commit7ce59f22a7f63cdd0a3e21c722e6b71eb31936ab (patch)
tree740b6e33c1087cc8afe159db680efdedd3f78f6f /src
parent2fa482cbc18890d9bbbae10c20e0cb1d964c0516 (diff)
downloadmrust-7ce59f22a7f63cdd0a3e21c722e6b71eb31936ab.tar.gz
HIR Typecheck Expressions - Clear the flag that disables ivar posibilities if the list is empty
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/expr_cs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index 5d09e90c..ce7ef629 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -4068,6 +4068,8 @@ namespace {
if( ivar_ent.types_to.size() == 0 && ivar_ent.types_from.size() == 0 ) {
// No idea! (or unused)
+ // - Clear the `force_no` flag
+ ivar_ent.force_no = false;
return ;
}