mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
remove single element record
This commit is contained in:
parent
6744e009ac
commit
368d45fb01
5 changed files with 6 additions and 29 deletions
|
@ -390,10 +390,10 @@ impl<'a> LambdaSet<'a> {
|
|||
use crate::ir::Wrapped;
|
||||
|
||||
match self.representation {
|
||||
Layout::Struct(fields) if fields.len() == 1 => Wrapped::SingleElementRecord,
|
||||
Layout::Struct(fields) if fields.len() == 1 => unreachable!(),
|
||||
Layout::Struct(_) => Wrapped::RecordOrSingleTagUnion,
|
||||
Layout::Union(_) => unreachable!(),
|
||||
_ => Wrapped::SingleElementRecord,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue