mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
all tests passing + clippy satisfied
This commit is contained in:
parent
40f0588696
commit
06bc187f8b
8 changed files with 177 additions and 139 deletions
|
@ -250,10 +250,13 @@ impl<'a> LayoutCache<'a> {
|
|||
seen: MutSet::default(),
|
||||
};
|
||||
|
||||
/*
|
||||
self.layouts
|
||||
.entry(var)
|
||||
.or_insert_with(|| Layout::from_var(&mut env, var))
|
||||
.clone()
|
||||
*/
|
||||
Layout::from_var(&mut env, var)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -370,7 +373,7 @@ fn layout_from_flat_type<'a>(
|
|||
|
||||
// correct the memory mode of unique lists
|
||||
match Layout::from_var(env, wrapped_var)? {
|
||||
Layout::Builtin(Builtin::List(_, elem_layout)) => {
|
||||
Layout::Builtin(Builtin::List(_ignored, elem_layout)) => {
|
||||
let uniqueness_var = args[0];
|
||||
let uniqueness_content =
|
||||
subs.get_without_compacting(uniqueness_var).content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue