mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Make sure unit structs are always units
This commit is contained in:
parent
148dbb4efe
commit
395e0a33e0
2 changed files with 35 additions and 20 deletions
|
@ -4701,9 +4701,7 @@ fn construct_closure_data<'a>(
|
|||
Vec::from_iter_in(combined.iter().map(|(_, b)| **b), env.arena).into_bump_slice();
|
||||
|
||||
debug_assert_eq!(
|
||||
// NB: this may be wrong! If it comes up, we may need to hash the closure
|
||||
// argument name order.
|
||||
Layout::struct_no_name_order(field_layouts,),
|
||||
Layout::struct_no_name_order(field_layouts),
|
||||
lambda_set.runtime_representation()
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue