Remove inaccurate debug assertion in IR gen

There might be more symbols than field layouts when restructuring a
record if the record is a newtype.

Closes #4759
This commit is contained in:
Ayaz Hafiz 2023-03-25 16:12:59 -05:00
parent 6de36f29f9
commit 2a9e0583bc
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 27 additions and 3 deletions

View file

@ -4963,9 +4963,6 @@ pub fn with_hole<'a>(
_ => arena.alloc([record_layout]),
};
debug_assert_eq!(field_layouts.len(), symbols.len());
debug_assert_eq!(fields.len(), symbols.len());
if symbols.len() == 1 {
// TODO we can probably special-case this more, skippiing the generation of
// UpdateExisting