refactor ClosureLayout

This commit is contained in:
Folkert 2020-10-21 13:38:46 +02:00
parent 22dcdab222
commit 4db09b10aa
4 changed files with 36 additions and 37 deletions

View file

@ -1661,7 +1661,7 @@ fn build_specialized_proc<'a>(
let closure_layout =
Layout::Struct(arena.alloc([function_ptr_layout, closure_data_layout]));
return Ok((&[], None, closure_layout));
Ok((&[], None, closure_layout))
}
None => {
// else we're making a normal function, no closure problems to worry about