mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
remove empty layout types (list,str,dict,set)
This commit is contained in:
parent
8d668514e4
commit
a1fd34feef
11 changed files with 94 additions and 296 deletions
|
@ -136,9 +136,6 @@ fn hash_builtin<'a, 'ctx, 'env>(
|
|||
)
|
||||
.into_int_value()
|
||||
}
|
||||
Builtin::EmptyStr | Builtin::EmptyDict | Builtin::EmptyList | Builtin::EmptySet => {
|
||||
hash_empty_collection(seed)
|
||||
}
|
||||
|
||||
Builtin::Dict(_, _) => {
|
||||
todo!("Implement hash for Dict")
|
||||
|
@ -793,10 +790,6 @@ fn hash_null(seed: IntValue<'_>) -> IntValue<'_> {
|
|||
seed
|
||||
}
|
||||
|
||||
fn hash_empty_collection(seed: IntValue<'_>) -> IntValue<'_> {
|
||||
seed
|
||||
}
|
||||
|
||||
fn hash_ptr_to_struct<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
layout_ids: &mut LayoutIds<'a>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue