mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
get tests working again
This commit is contained in:
parent
c1fdd0ea7b
commit
ceb938c9af
7 changed files with 424 additions and 111 deletions
|
@ -478,8 +478,11 @@ fn layout_from_flat_type<'a>(
|
|||
env.insert_seen(rec_var);
|
||||
let mut tag_layouts = Vec::with_capacity_in(tags.len(), arena);
|
||||
|
||||
// tags: MutMap<TagName, std::vec::Vec<Variable>>,
|
||||
for (_name, variables) in tags {
|
||||
// VERY IMPORTANT: sort the tags
|
||||
let mut tags_vec: std::vec::Vec<_> = tags.into_iter().collect();
|
||||
tags_vec.sort();
|
||||
|
||||
for (_name, variables) in tags_vec {
|
||||
let mut tag_layout = Vec::with_capacity_in(variables.len() + 1, arena);
|
||||
|
||||
// store the discriminant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue