Skip to content

rustdoc doesn't render constness of bare functions on nightly #44187

Description

@QuietMisdreavus

On today's nightly docs for std::mem::size_of:

image

But if you click [src], you can see that it's supposed to be const:

image

Rustdoc is supposed to print the constness of functions on nightly. It currently works for associated functions (e.g. AtomicBool::new) but bare functions like size_of are currently not working.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions