Skip to content

#[rustc_pub_transparent] does not shows up as #[repr(transparent)] in docs #150919

@orlp

Description

@orlp

Location (URL)

https://doc.rust-lang.org/nightly/std/mem/struct.ManuallyDrop.html

Summary

In 1.65 this struct was shown as #[repr(transparent)] in the docs: https://doc.rust-lang.org/1.65/std/mem/struct.ManuallyDrop.html.

In 1.66 this regressed and the attribute disappeared: https://doc.rust-lang.org/1.66/std/mem/struct.ManuallyDrop.html.

It is now marked as #[rustc_pub_transparent] so I think we should show #[repr(transparent)] again (as well as for any other structs marked #[rustc_pub_transparent]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions