
10

Add lint `transmute_undefined_repr` by Jarcho · Pull Request #8398 · rust-lang/r...
source link: https://github.com/rust-lang/rust-clippy/pull/8398
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Partially implements #3999 and #546
This doesn't consider enum
s at all right now as those are going to be a pain to deal with. This also allows #[repr(Rust)]
structs with only one non-zero sized fields. I think those are technically undefined when transmuted.
changelog: Add lint transmute_undefined_repr
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK