mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
comment invalid assertion
This commit is contained in:
parent
509670e6d3
commit
d0686582d0
1 changed files with 3 additions and 2 deletions
|
@ -828,9 +828,10 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||||
|
|
||||||
let tag_field_layouts = fields[*tag_id as usize];
|
let tag_field_layouts = fields[*tag_id as usize];
|
||||||
for (field_symbol, tag_field_layout) in arguments.iter().zip(tag_field_layouts.iter()) {
|
for (field_symbol, tag_field_layout) in arguments.iter().zip(tag_field_layouts.iter()) {
|
||||||
let (val, val_layout) = load_symbol_and_layout(env, scope, field_symbol);
|
let (val, _val_layout) = load_symbol_and_layout(env, scope, field_symbol);
|
||||||
|
|
||||||
debug_assert_eq!(tag_field_layout, val_layout);
|
// this check fails for recursive tag unions, but can be helpful while debugging
|
||||||
|
// debug_assert_eq!(tag_field_layout, val_layout);
|
||||||
|
|
||||||
// Zero-sized fields have no runtime representation.
|
// Zero-sized fields have no runtime representation.
|
||||||
// The layout of the struct expects them to be dropped!
|
// The layout of the struct expects them to be dropped!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue