add is_sized method on Abi and Layout, and use it
This commit is contained in:
parent
742d3f02c2
commit
c78021709a
21 changed files with 39 additions and 29 deletions
|
@ -668,7 +668,7 @@ fn layout_of_uncached<'tcx>(
|
|||
let mut abi = Abi::Aggregate { sized: true };
|
||||
let index = VariantIdx::new(0);
|
||||
for field in &variants[index] {
|
||||
assert!(!field.is_unsized());
|
||||
assert!(field.is_sized());
|
||||
align = align.max(field.align);
|
||||
|
||||
// If all non-ZST fields have the same ABI, forward this ABI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue