cargo-semver-checks
cargo-semver-checks copied to clipboard
Handle combined repr attributes like `#[repr(C, u8)]` in repr checks
https://rust-lang.github.io/unsafe-code-guidelines/layout/enums.html#explicit-repr-annotation-with-c-compatibility
Currently, I suspect that #[repr(C, u8)]
won't get detected as either #[repr(C)]
or as #[repr(u8)]
, which I believe can lead to both false-positives and false-negatives. Due to the false-positives, this is a bug.
H/t https://twitter.com/bitshiftmask/status/1562185690208735233 + a private Twitter account I'm not going to name, you know who you are :) Thank you both!