10

Add lint `transmute_undefined_repr` by Jarcho · Pull Request #8398 · rust-lang/r...

 3 years ago
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.
neoserver,ios ssh client

Copy link

Contributor

Jarcho commented 11 days ago

Partially implements #3999 and #546

This doesn't consider enums 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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK