optimize recursive call

This commit is contained in:
Folkert 2022-03-06 14:14:47 +01:00
parent a37a895016
commit 592a5ace19
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1466,8 +1466,7 @@ fn type_to_union_tags<'a>(
let sorted = tags.len() == 1 || sorted_no_duplicates(tags); let sorted = tags.len() == 1 || sorted_no_duplicates(tags);
if ext.is_empty_tag_union() { if ext.is_empty_tag_union() {
let ext = type_to_variable(subs, rank, pools, arena, &Type::EmptyTagUnion); let ext = Variable::EMPTY_TAG_UNION;
// let ext = Variable::EMPTY_TAG_UNION;
let union_tags = if sorted { let union_tags = if sorted {
insert_tags_fast_path(subs, rank, pools, arena, tags) insert_tags_fast_path(subs, rank, pools, arena, tags)