mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
7025605b8c
Moreover, dereference `ty_layout.align` for `#[rustc_dump_layout(align)]`
to render `align: Align($N bytes)` instead of `align: AbiAlign { abi: Align($N bytes) }`
which contains the same amount of information but it more concise and legible.
15 lines
425 B
Plaintext
15 lines
425 B
Plaintext
error: backend_repr: Memory { sized: true }
|
|
--> $DIR/struct.rs:9:1
|
|
|
|
|
LL | struct AlignedZstPreventsScalar(i16, [i32; 0]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: backend_repr: Scalar(Initialized { value: Int(I32, true), valid_range: 0..=4294967295 })
|
|
--> $DIR/struct.rs:12:1
|
|
|
|
|
LL | struct AlignedZstButStillScalar(i32, [i16; 0]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|