mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
use a SubsIndex instead of Box
This commit is contained in:
parent
dd73428dc1
commit
ad3d006a11
7 changed files with 65 additions and 30 deletions
|
@ -1256,7 +1256,7 @@ fn layout_from_flat_type<'a>(
|
|||
debug_assert!(ext_var_is_empty_tag_union(subs, ext_var));
|
||||
|
||||
let mut tags = MutMap::default();
|
||||
tags.insert(*tag_name, vec![]);
|
||||
tags.insert(subs[tag_name].clone(), vec![]);
|
||||
|
||||
Ok(layout_from_tag_union(arena, tags, subs))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue