mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
List.unreachable
This commit is contained in:
parent
543615292a
commit
506e374642
7 changed files with 36 additions and 0 deletions
|
@ -890,6 +890,7 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
// - arguments that we may want to update destructively must be Owned
|
||||
// - other refcounted arguments are Borrowed
|
||||
match op {
|
||||
Unreachable => arena.alloc_slice_copy(&[irrelevant]),
|
||||
ListLen | StrIsEmpty | StrCountGraphemes => arena.alloc_slice_copy(&[borrowed]),
|
||||
ListWithCapacity => arena.alloc_slice_copy(&[irrelevant]),
|
||||
ListReplaceUnsafe => arena.alloc_slice_copy(&[owned, irrelevant, irrelevant]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue