Rollup merge of #107352 - sameo:topic/E0587, r=JohnTitor

compiler: Fix E0587 explanation

We meant to use 8 as the packed argument.

Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
This commit is contained in:
Yuki Okushi 2023-01-28 00:23:15 +09:00 committed by GitHub
commit 85dc93b4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,6 @@ You cannot use `packed` and `align` hints on a same type. If you want to pack a
type to a given size, you should provide a size to packed: type to a given size, you should provide a size to packed:
``` ```
#[repr(packed)] // ok! #[repr(packed(8))] // ok!
struct Umbrella(i32); struct Umbrella(i32);
``` ```