mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
optimize initial tag union creation
This commit is contained in:
parent
26da66d73f
commit
4cbb1c9b25
3 changed files with 106 additions and 76 deletions
|
@ -1439,7 +1439,10 @@ impl UnionTags {
|
|||
)
|
||||
}
|
||||
|
||||
fn from_slices(tag_names: SubsSlice<TagName>, variables: SubsSlice<VariableSubsSlice>) -> Self {
|
||||
pub fn from_slices(
|
||||
tag_names: SubsSlice<TagName>,
|
||||
variables: SubsSlice<VariableSubsSlice>,
|
||||
) -> Self {
|
||||
debug_assert_eq!(tag_names.len(), variables.len());
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue