Skip to content

rustdoc: hide constness of fns in stable docs #31098

Closed
@durka

Description

@durka

Rustdoc shows const fns as const, but you can't call them in a const context because they're still unstable. If you aren't in a const context, it doesn't matter whether the fn is const or not. So it's confusing and maybe it shouldn't be shown at all until the feature is stable.

cc @jethrogb

Metadata

Metadata

Assignees

No one assigned

    Labels

    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