Skip to content

Commit 4229875

Browse files
committed
Update test output.
1 parent 5d65418 commit 4229875

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/ui/print_type_sizes/niche-filling.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// compile-flags: -Z print-type-sizes --crate-type=lib
2-
// ignore-debug debug assertions will print more types
1+
// compile-flags: -Z print-type-sizes --crate-type lib
2+
// ignore-debug: debug assertions will print more types
33
// build-pass
44
// ignore-pass
55
// ^-- needed because `--pass check` does not emit the output needed.

tests/ui/print_type_sizes/niche-filling.stdout

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ print-type-size field `.a`: 4 bytes
7070
print-type-size field `.b`: 4 bytes, offset: 0 bytes, alignment: 4 bytes
7171
print-type-size type: `std::num::NonZero<u32>`: 4 bytes, alignment: 4 bytes
7272
print-type-size field `.0`: 4 bytes
73+
print-type-size type: `std::option::Option<std::num::NonZero<u32>>`: 4 bytes, alignment: 4 bytes
74+
print-type-size variant `Some`: 4 bytes
75+
print-type-size field `.0`: 4 bytes
76+
print-type-size variant `None`: 0 bytes
7377
print-type-size type: `Enum4<(), (), (), MyOption<u8>>`: 2 bytes, alignment: 1 bytes
7478
print-type-size variant `Four`: 2 bytes
7579
print-type-size field `.0`: 2 bytes

0 commit comments

Comments
 (0)