mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
shift store_pattern over to decision_tree
This commit is contained in:
parent
e32a06b088
commit
ed28b02b57
7 changed files with 39 additions and 32 deletions
|
@ -5096,8 +5096,6 @@ fn from_can_when<'a>(
|
|||
jump,
|
||||
);
|
||||
|
||||
// let new_guard_stmt = store_pattern(env, procs, layout_cache, &pattern, cond_symbol, guard_stmt);
|
||||
|
||||
(
|
||||
pattern.clone(),
|
||||
Guard::Guard {
|
||||
|
@ -5108,9 +5106,7 @@ fn from_can_when<'a>(
|
|||
branch_stmt,
|
||||
)
|
||||
} else {
|
||||
let new_branch_stmt =
|
||||
store_pattern(env, procs, layout_cache, &pattern, cond_symbol, branch_stmt);
|
||||
(pattern, Guard::NoGuard, new_branch_stmt)
|
||||
(pattern, Guard::NoGuard, branch_stmt)
|
||||
}
|
||||
});
|
||||
let mono_branches = Vec::from_iter_in(it, arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue