Remove insert_direct_no_semantic in compare eq

This commit is contained in:
Ayaz Hafiz 2023-06-16 22:11:41 -05:00
parent 7ab044d79f
commit 6139918e3b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 89 additions and 118 deletions

View file

@ -1291,7 +1291,12 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
let (value, layout) = scope.load_symbol_and_layout(structure);
let struct_val = RocStruct::from(value);
struct_val.load_at_index(env, layout_interner, layout, *index)
struct_val.load_at_index(
env,
layout_interner,
layout_interner.get_repr(layout),
*index,
)
}
EmptyArray => empty_polymorphic_list(env),