mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix a bunch of tests
This commit is contained in:
parent
3f3ee26504
commit
83b723f221
2 changed files with 175 additions and 400 deletions
|
@ -157,10 +157,10 @@ fn lower_content(
|
|||
let mut tags = resolve_tag_ext(subs, problems, UnionTags::default(), *ext);
|
||||
|
||||
// Now lower all the tags we gathered from the ext var.
|
||||
// Do this in a separate pass to avoid borrow errors on Subs.
|
||||
// (Do this in a separate pass to avoid borrow errors on Subs.)
|
||||
lower_vars(tags.iter_mut().flat_map(|(_, vars)| vars.iter_mut()), cache, subs, problems);
|
||||
|
||||
// Then, add the tag names with no payloads. (There's nothing to lower here.)
|
||||
// Then, add the tag names with no payloads. (There are no variables to lower here.)
|
||||
for index in tag_names.into_iter() {
|
||||
tags.push(((&subs[index]).clone(), Vec::new()));
|
||||
}
|
||||
|
@ -287,9 +287,6 @@ fn resolve_record_ext(
|
|||
}
|
||||
}
|
||||
|
||||
// ext should have ended up being empty
|
||||
debug_assert_eq!(ext, Variable::EMPTY_RECORD);
|
||||
|
||||
all_fields
|
||||
}
|
||||
|
||||
|
@ -331,9 +328,6 @@ fn resolve_tuple_ext(
|
|||
}
|
||||
}
|
||||
|
||||
// ext should have ended up being empty
|
||||
debug_assert_eq!(ext, Variable::EMPTY_TUPLE);
|
||||
|
||||
all_elems
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue