Rollup merge of #76430 - pickfire:patch-7, r=steveklabnik

Add align to rustc-attrs unstable book
This commit is contained in:
Tyler Mandry 2020-09-09 15:05:51 -07:00 committed by GitHub
commit d0c2a2d37c
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 works on sized types without generics.
## Examples