What is the type "tables::Align64<[u8; 7520]>"

When use "-Z print-type-sizes" to print type sizes, I cannot find the type definition in rustc codes for tables::Align64<[u8; 7520]>, what is this type?

print-type-size type: `tables::Align64<[u8; 7520]>`: 7552 bytes, alignment: 64 bytes
print-type-size     field `.0`: 7520 bytes
print-type-size     end padding: 32 bytes
print-type-size type: `tables::Align8<[u8; 1793]>`: 1800 bytes, alignment: 8 bytes
print-type-size     field `.0`: 1793 bytes
print-type-size     end padding: 7 bytes
print-type-size type: `tables::Align8<[u8; 402]>`: 408 bytes, alignment: 8 bytes
print-type-size     field `.0`: 402 bytes
print-type-size     end padding: 6 bytes
print-type-size type: `tables::Align64<[bool; 128]>`: 128 bytes, alignment: 64 bytes
print-type-size     field `.0`: 128 bytes

Which crate are you running -Z print-type-sizes on?

My own lib crate GitHub - gftea/amqprs: Async RabbitMQ Rust Client, easy-to-use API, async tokio, lock-free I run with below command RUSTFLAGS="-Z print-type-sizes" cargo +nightly build

It is this type: unicode-ident/tables.rs at bfa5c91ffc38e032d925cf7521e091b106da51b0 · dtolnay/unicode-ident · GitHub from the unicode-ident crate, which is an indirect dependency of a proc macro you use. It should have been clearer. I'm going to open an issue to include the crate name in -Z print-type-sizes.

Edit: opened Always show crate name with -Z print-type-sizes · Issue #107368 · rust-lang/rust · GitHub

5 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.