mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 05:33:14 +00:00
Get rid of inaccurate debug assertion
This commit is contained in:
parent
6de36f29f9
commit
18858b9eb3
1 changed files with 0 additions and 9 deletions
|
|
@ -4607,18 +4607,9 @@ pub fn gather_tags_unsorted_iter(
|
|||
|
||||
let mut stack = vec![other_fields];
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let mut seen_head_union = false;
|
||||
|
||||
loop {
|
||||
match subs.get_content_without_compacting(ext.var()) {
|
||||
Structure(TagUnion(sub_fields, sub_ext)) => {
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
assert!(!seen_head_union, "extension variable is another tag union, but I expected it to be either open or closed!");
|
||||
seen_head_union = true;
|
||||
}
|
||||
|
||||
stack.push(*sub_fields);
|
||||
|
||||
ext = *sub_ext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue