mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
appease the paperclip
This commit is contained in:
parent
457ba524aa
commit
2ca1ebdd2d
2 changed files with 3 additions and 6 deletions
|
@ -1034,7 +1034,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
add_top_level_function_type!(
|
||||
Symbol::LIST_GET,
|
||||
vec![list_type(flex(TVAR1)), nat_type()],
|
||||
Box::new(result_type(flex(TVAR1), index_out_of_bounds.clone())),
|
||||
Box::new(result_type(flex(TVAR1), index_out_of_bounds)),
|
||||
);
|
||||
|
||||
// first : List elem -> Result elem [ ListWasEmpty ]*
|
||||
|
|
|
@ -301,7 +301,7 @@ pub fn list_replace_unsafe<'a, 'ctx, 'env>(
|
|||
element_layout: &Layout<'a>,
|
||||
update_mode: UpdateMode,
|
||||
) -> BasicValueEnum<'ctx> {
|
||||
let element_type = basic_type_from_layout(env, &element_layout);
|
||||
let element_type = basic_type_from_layout(env, element_layout);
|
||||
let element_ptr = env
|
||||
.builder
|
||||
.build_alloca(element_type, "output_element_as_opaque");
|
||||
|
@ -340,10 +340,7 @@ pub fn list_replace_unsafe<'a, 'ctx, 'env>(
|
|||
let result = env
|
||||
.context
|
||||
.struct_type(
|
||||
&[
|
||||
super::convert::zig_list_type(env).into(),
|
||||
element_type.into(),
|
||||
],
|
||||
&[super::convert::zig_list_type(env).into(), element_type],
|
||||
false,
|
||||
)
|
||||
.const_zero();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue