don't drop empty records from layouts

This commit is contained in:
Folkert 2020-12-10 15:04:42 +01:00
parent 1aba0534b1
commit a9b3c74f2e
3 changed files with 6 additions and 2 deletions

View file

@ -398,7 +398,8 @@ impl<'a> Layout<'a> {
if let Layout::PhantomEmptyStruct = self {
false
} else {
self.stack_size(1) == 0
// self.stack_size(1) == 0
false
}
}