5

Github unaligned_references: align(N) fields in packed(N) structs are fine by Ra...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/83605
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

Member

RalfJung commented 13 days ago

This removes some false positives from the unaligned_references lint: in a repr(packed(2)) struct, fields of alignment 2 (and less) are guaranteed to be properly aligned, so we do not have to consider them "disaligned".


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK