This commit is contained in:
Folkert 2021-04-03 21:25:26 +02:00
parent f73be5d4a0
commit 07a0f69d95
3 changed files with 4 additions and 11 deletions

View file

@ -3955,12 +3955,12 @@ fn run_low_level<'a, 'ctx, 'env>(
let (list, list_layout) = load_symbol_and_layout(scope, &args[0]);
let (func, func_layout) = load_symbol_and_layout(scope, &args[1]);
let func = load_symbol(scope, &args[1]);
match list_layout {
Layout::Builtin(Builtin::EmptyList) => empty_list(env),
Layout::Builtin(Builtin::List(_, element_layout)) => {
list_sort_with(env, layout_ids, func, func_layout, list, element_layout)
list_sort_with(env, layout_ids, func, list, element_layout)
}
_ => unreachable!("invalid list layout"),
}