support zero-sized values (empty record, unit type)

They now use no stack space
This commit is contained in:
Folkert 2020-03-19 11:24:44 +01:00
parent b93fe4e341
commit 9d1e2a0ef1
3 changed files with 59 additions and 3 deletions

View file

@ -672,6 +672,8 @@ fn from_can<'a>(
Expr::Struct(field_tuples.into_bump_slice())
}
EmptyRecord => Expr::Struct(&[]),
Tag {
variant_var,
name: tag_name,