print-type-sizes: skip field printing for primitives
This commit is contained in:
parent
1d71ba8623
commit
25b6f9b68b
3 changed files with 7 additions and 3 deletions
|
|
@ -11,5 +11,5 @@
|
|||
fn start(_: isize, _: *const *const u8) -> isize {
|
||||
let _x: Option<!> = None;
|
||||
let _y: Result<u32, !> = Ok(42);
|
||||
0
|
||||
let _z: Result<!, !> = loop {};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@ print-type-size variant `Ok`: 4 bytes
|
|||
print-type-size field `.0`: 4 bytes
|
||||
print-type-size type: `std::option::Option<!>`: 0 bytes, alignment: 1 bytes
|
||||
print-type-size variant `None`: 0 bytes
|
||||
print-type-size type: `std::result::Result<!, !>`: 0 bytes, alignment: 1 bytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue