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
While the standard library may(?) assume they will properly transmute, it might be better to add #[repr(transparent)] to sys::windows::os_str::Slice. Possibly this affects other systems as well.
I noticed that the
sys::windows::os_str::Slice
type is notrepr(transparent)
whilesys::unix::os_str::Slice
is. However, they are required to have a transparent representation.While the standard library may(?) assume they will properly transmute, it might be better to add
#[repr(transparent)]
tosys::windows::os_str::Slice
. Possibly this affects other systems as well.See also this thread/post on URLO.
The text was updated successfully, but these errors were encountered: