fix: some function dependency tree path was not being updated in order

fix: revert to old implicit way of casting to data for now
This commit is contained in:
microproofs
2023-07-31 12:57:15 -04:00
committed by Kasey
parent a45ff692a6
commit bfa4cc2efc
11 changed files with 112 additions and 99 deletions

View File

@@ -607,18 +607,6 @@ pub fn modify_self_calls(air_tree: &mut AirTree, func_key: &FunctionAccessKey, v
}
}
pub fn remove_tuple_data_casts(air_tree: &mut AirTree) {
if let AirTree::Expression(AirExpression::List { items, .. }) = air_tree {
for item in items {
if let AirTree::Expression(AirExpression::CastToData { value, tipo }) = item {
if tipo.is_2_tuple() {
*item = (**value).clone();
}
}
}
}
}
pub fn pattern_has_conditions(pattern: &TypedPattern) -> bool {
match pattern {
Pattern::Constructor {