mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
non lazy
This commit is contained in:
parent
343a548458
commit
315b7d73a4
1 changed files with 10 additions and 4 deletions
|
@ -922,12 +922,18 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
|||
},
|
||||
}
|
||||
})
|
||||
.rev();
|
||||
// Collect to prevent revs from cancelling out.
|
||||
.collect_in::<Vec<_>>(arena);
|
||||
|
||||
// Add the void tokens to the jump arguments to match the expected arguments of the join point.
|
||||
let extended_arguments =
|
||||
Vec::from_iter_in(arguments.iter().copied().chain(tokens), arena)
|
||||
.into_bump_slice();
|
||||
let extended_arguments = Vec::from_iter_in(
|
||||
arguments
|
||||
.iter()
|
||||
.copied()
|
||||
.chain(tokens.iter().copied().rev()),
|
||||
arena,
|
||||
)
|
||||
.into_bump_slice();
|
||||
|
||||
let casted_tokens = reuse_tokens_to_cast.into_iter().fold(
|
||||
arena.alloc(Stmt::Jump(*id, extended_arguments)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue