make it work

This commit is contained in:
Folkert 2021-06-20 22:36:22 +02:00
parent 5e1077bf3e
commit e274976c6a
14 changed files with 158 additions and 26 deletions

View file

@ -229,6 +229,10 @@ fn consume_expr(m: &VarMap, e: &Expr<'_>) -> bool {
Some(info) => info.consume,
None => true,
},
Expr::CoerceToTagId { structure: x, .. } => match m.get(x) {
Some(info) => info.consume,
None => true,
},
_ => true,
}
}