mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Merge branch 'trunk' into more-tea
This commit is contained in:
commit
3d9b82e35e
18 changed files with 188 additions and 184 deletions
|
@ -158,7 +158,7 @@ pub fn basic_type_from_layout<'ctx>(
|
|||
Float64 => context.f64_type().as_basic_type_enum(),
|
||||
Float32 => context.f32_type().as_basic_type_enum(),
|
||||
Float16 => context.f16_type().as_basic_type_enum(),
|
||||
Map(_, _) | EmptyMap => panic!("TODO layout_to_basic_type for Builtin::Map"),
|
||||
Dict(_, _) | EmptyDict => panic!("TODO layout_to_basic_type for Builtin::Dict"),
|
||||
Set(_) | EmptySet => panic!("TODO layout_to_basic_type for Builtin::Set"),
|
||||
List(_, _) | Str | EmptyStr => collection(context, ptr_bytes).into(),
|
||||
EmptyList => BasicTypeEnum::StructType(collection(context, ptr_bytes)),
|
||||
|
|
|
@ -397,7 +397,7 @@ fn decrement_refcount_builtin<'a, 'ctx, 'env>(
|
|||
}
|
||||
todo!();
|
||||
}
|
||||
Map(key_layout, value_layout) => {
|
||||
Dict(key_layout, value_layout) => {
|
||||
if key_layout.contains_refcounted() || value_layout.contains_refcounted() {
|
||||
// TODO decrement all values
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ fn increment_refcount_builtin<'a, 'ctx, 'env>(
|
|||
}
|
||||
todo!();
|
||||
}
|
||||
Map(key_layout, value_layout) => {
|
||||
Dict(key_layout, value_layout) => {
|
||||
if key_layout.contains_refcounted() || value_layout.contains_refcounted() {
|
||||
// TODO decrement all values
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue