mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Update List.reserve to no longer use Nat
This commit is contained in:
parent
e207a7ce53
commit
27474d4ed8
4 changed files with 14 additions and 8 deletions
|
@ -169,7 +169,7 @@ pub(crate) fn list_get_unsafe<'a, 'ctx>(
|
|||
)
|
||||
}
|
||||
|
||||
/// List.reserve : List elem, Nat -> List elem
|
||||
/// List.reserve : List elem, U64 -> List elem
|
||||
pub(crate) fn list_reserve<'a, 'ctx>(
|
||||
env: &Env<'a, 'ctx, '_>,
|
||||
layout_interner: &STLayoutInterner<'a>,
|
||||
|
|
|
@ -688,7 +688,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
|
|||
list_prepend(env, layout_interner, original_wrapper, elem, elem_layout)
|
||||
}
|
||||
ListReserve => {
|
||||
// List.reserve : List elem, Nat -> List elem
|
||||
// List.reserve : List elem, U64 -> List elem
|
||||
debug_assert_eq!(args.len(), 2);
|
||||
|
||||
let (list, list_layout) = scope.load_symbol_and_layout(&args[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue