move things from rustc_target::abi to rustc_abi
This commit is contained in:
parent
27fb904d68
commit
390a637e29
21 changed files with 1700 additions and 1673 deletions
|
@ -1378,7 +1378,7 @@ impl<'tcx> LateLintPass<'tcx> for VariantSizeDifferences {
|
|||
let (largest, slargest, largest_index) = iter::zip(enum_definition.variants, variants)
|
||||
.map(|(variant, variant_layout)| {
|
||||
// Subtract the size of the enum tag.
|
||||
let bytes = variant_layout.size().bytes().saturating_sub(tag_size);
|
||||
let bytes = variant_layout.size.bytes().saturating_sub(tag_size);
|
||||
|
||||
debug!("- variant `{}` is {} bytes large", variant.ident, bytes);
|
||||
bytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue