mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Merge pull request #2627 from rtfeldman/constraints-soa
Constraints using Struct of Arrays
This commit is contained in:
commit
c89a6c109a
21 changed files with 1413 additions and 768 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::ir::DestructType;
|
||||
use roc_collections::all::Index;
|
||||
use roc_collections::all::HumanIndex;
|
||||
use roc_exhaustive::{
|
||||
is_useful, Context, Ctor, Error, Guard, Literal, Pattern, RenderAs, TagId, Union,
|
||||
};
|
||||
|
@ -189,7 +189,7 @@ fn to_nonredundant_rows(
|
|||
return Err(Error::Redundant {
|
||||
overall_region,
|
||||
branch_region: region,
|
||||
index: Index::zero_based(checked_rows.len()),
|
||||
index: HumanIndex::zero_based(checked_rows.len()),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue