This commit is contained in:
Ayaz Hafiz 2022-06-01 17:01:11 -05:00
parent bde107da49
commit b0c602eb8d
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 7 additions and 7 deletions

View file

@ -2328,14 +2328,14 @@ where
WrappedVariant::NullableUnwrapped { WrappedVariant::NullableUnwrapped {
nullable_id, nullable_id,
nullable_name: nullable_name.into(), nullable_name,
other_name, other_name,
other_fields: other_arguments, other_fields: other_arguments,
} }
} else { } else {
WrappedVariant::NullableWrapped { WrappedVariant::NullableWrapped {
nullable_id, nullable_id,
nullable_name: nullable_name.into(), nullable_name,
sorted_tag_layouts: answer, sorted_tag_layouts: answer,
} }
} }
@ -2510,8 +2510,8 @@ where
// type can be stored in a boolean // type can be stored in a boolean
// tags_vec is sorted, and answer is sorted the same way // tags_vec is sorted, and answer is sorted the same way
let ttrue = answer.remove(1).0.into(); let ttrue = answer.remove(1).0;
let ffalse = answer.remove(0).0.into(); let ffalse = answer.remove(0).0;
UnionVariant::BoolUnion { ffalse, ttrue } UnionVariant::BoolUnion { ffalse, ttrue }
} }
@ -2521,7 +2521,7 @@ where
let mut tag_names = Vec::with_capacity_in(answer.len(), arena); let mut tag_names = Vec::with_capacity_in(answer.len(), arena);
for (tag_name, _) in answer { for (tag_name, _) in answer {
tag_names.push(tag_name.into()); tag_names.push(tag_name);
} }
UnionVariant::ByteUnion(tag_names) UnionVariant::ByteUnion(tag_names)
@ -2535,7 +2535,7 @@ where
WrappedVariant::NullableUnwrapped { WrappedVariant::NullableUnwrapped {
nullable_id, nullable_id,
nullable_name: nullable_name.into(), nullable_name: nullable_name.into(),
other_name: other_name.into(), other_name,
other_fields: other_arguments, other_fields: other_arguments,
} }
} else { } else {

View file

@ -2524,7 +2524,7 @@ fn create_union_lambda<'a>(
let lambda_name_slice = SubsSlice::extend_new(&mut subs.closure_names, [closure]); let lambda_name_slice = SubsSlice::extend_new(&mut subs.closure_names, [closure]);
return UnionLambdas::from_slices(lambda_name_slice, new_variable_slices); UnionLambdas::from_slices(lambda_name_slice, new_variable_slices)
} }
fn check_for_infinite_type( fn check_for_infinite_type(