From b7ed6929ba4b5a4fbb8c4ab32c67fb0068893dbc Mon Sep 17 00:00:00 2001 From: Folkert Date: Wed, 3 Mar 2021 20:08:50 +0100 Subject: [PATCH] append must now own its first argument too --- compiler/mono/src/borrow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/mono/src/borrow.rs b/compiler/mono/src/borrow.rs index c87f0b4e05..61c70b4d1f 100644 --- a/compiler/mono/src/borrow.rs +++ b/compiler/mono/src/borrow.rs @@ -659,7 +659,7 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] { // TODO when we have lists with capacity (if ever) // List.append should own its first argument - ListAppend => arena.alloc_slice_copy(&[borrowed, owned]), + ListAppend => arena.alloc_slice_copy(&[owned, owned]), Eq | NotEq => arena.alloc_slice_copy(&[borrowed, borrowed]),