rustc: use an offset instead of a field path in Layout::StructWrappedNullablePointer.

This commit is contained in:
Eduard-Mihai Burtescu 2017-09-10 23:53:57 +03:00
parent 50a3fd0097
commit bc8e1f7efa
6 changed files with 139 additions and 115 deletions

View file

@ -19,6 +19,5 @@ print-type-size field `.pre`: 1 bytes
print-type-size end padding: 1 bytes
print-type-size type: `MyOption<core::nonzero::NonZero<u32>>`: 4 bytes, alignment: 4 bytes
print-type-size variant `Some`: 4 bytes
print-type-size field `.0`: 4 bytes
print-type-size type: `core::nonzero::NonZero<u32>`: 4 bytes, alignment: 4 bytes
print-type-size field `.0`: 4 bytes