mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
make Layout Hash
This commit is contained in:
parent
b28a6ffa33
commit
f3f135eca5
3 changed files with 18 additions and 19 deletions
|
@ -69,7 +69,7 @@ pub fn basic_type_from_layout<'ctx>(
|
|||
.as_basic_type_enum()
|
||||
}
|
||||
Union(tags) if tags.len() == 1 => {
|
||||
let (_, layouts) = tags.iter().next().unwrap();
|
||||
let layouts = tags.iter().next().unwrap();
|
||||
|
||||
// Determine types
|
||||
let mut field_types = Vec::with_capacity_in(layouts.len(), arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue