Add align to rustc-attrs unstable book

This commit is contained in:
Ivan Tham 2020-09-07 15:10:31 +08:00 committed by GitHub
parent c133aac1e9
commit 3740b0064d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,8 @@ The `rustc_attrs` feature allows debugging rustc type layouts by using
with `cargo check`) as an alternative to `rustc -Z print-type-sizes`
that is way more verbose.
Options provided by `#[rustc_layout(...)]` are `debug`, `size`, `abi`.
Note that it only work best with sized type without generics.
Options provided by `#[rustc_layout(...)]` are `debug`, `size`, `align`,
`abi`. Note that it only work best with sized type without generics.
## Examples