commit some crimes

This commit is contained in:
Folkert 2020-11-05 23:18:28 +01:00
parent e6f6b8c224
commit 3d0f2751f5
3 changed files with 233 additions and 105 deletions

View file

@ -109,10 +109,8 @@ impl<'a> ClosureLayout<'a> {
use UnionVariant::*;
match variant {
Never | Unit => {
// a max closure size of 0 means this is a standard top-level function
Ok(None)
}
Never => Ok(None),
Unit => Ok(None),
BoolUnion { .. } => {
let closure_layout = ClosureLayout::from_bool(arena);