You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to rust, the valid repr attributes are Rust (default), C, align, packed, transparent, simd, i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize and usize.
But gccrs allows us to use anything as the attribute and this code compiles without any error.
Yeah attributes checker makes sense then i think either directly in the backend where we have some repr support for packed and aligned for now. If this only works on builtin types then i think it should be handy enough to change the discriminant field type.
I am currently working on enums a fair bit these days I think our layout might be wrong after reviewing gdb code for a while again.
According to rust, the valid repr attributes are
Rust
(default),C
,align
,packed
,transparent
,simd
,i8
,u8
,i16
,u16
,i32
,u32
,i64
,u64
,i128
,u128
,isize
andusize
.But gccrs allows us to use anything as the attribute and this code compiles without any error.
Godbolt: https://godbolt.org/z/f8rhET9ch
The text was updated successfully, but these errors were encountered: