rust-clippy
rust-clippy copied to clipboard
`transmute_undefined_repr` fix
changelog: Don't lint transmute_undefined_repr
when the the first field of a repr(C)
type is compatible with the other type
r? @xFrednet
(rust-highfive has picked a reviewer for you, use r? to override)
Could you have a look at the CI? Then we can merge this :)
The most recent change allows casts between *const/mut int_type
and any type as a form of type erasure. *u8/i8
are used as an untyped buffer. I've also seen *u16/i16
used due to windows api's counting by them.
Looks good to me, thank you for the update!
@bors r+
:pushpin: Commit 99e77d07b2856fccd083d5810a9756e07cc4c524 has been approved by xFrednet
It is now in the queue for this repository.
:hourglass: Testing commit 99e77d07b2856fccd083d5810a9756e07cc4c524 with merge 84fb7e039565ac87f504af235940a568b90e7223...
:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: xFrednet Pushing 84fb7e039565ac87f504af235940a568b90e7223 to master...