You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the definition, the wrapper struct volatile_register::RW (let me abbreviate it as vr here) didn't have stable layout, and rustc would preserve the right to insert padding or reorder the structure. vr<u32> should be declared as transparent; otherwise, casting it to u32 could lead to UB such as uninitialized memory exposure to ptr::read_volatile.