Skip to content

#[repr(transparent)] in sys::windows::os_str::Slice #96577

Closed
@JanBeh

Description

@JanBeh

I noticed that the sys::windows::os_str::Slice type is not repr(transparent) while sys::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)] to sys::windows::os_str::Slice. Possibly this affects other systems as well.

See also this thread/post on URLO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions