remove single element record

This commit is contained in:
Folkert 2021-06-21 23:02:09 +02:00
parent 6744e009ac
commit 368d45fb01
5 changed files with 6 additions and 29 deletions

View file

@ -452,10 +452,7 @@ fn expand_and_cancel<'a>(env: &mut Env<'a, '_>, stmt: &'a Stmt<'a>) -> &'a Stmt<
entry.insert(*index, symbol);
// fixes https://github.com/rtfeldman/roc/issues/1099
if matches!(
wrapped,
Wrapped::SingleElementRecord | Wrapped::RecordOrSingleTagUnion
) {
if matches!(wrapped, Wrapped::RecordOrSingleTagUnion) {
env.layout_map
.insert(*structure, Layout::Struct(field_layouts));
}