Skip to content

For an unstable but const-stable function, rustdoc should not show the "const: <version>" part #131073

Closed
@RalfJung

Description

@RalfJung

This is a function that is unstable but const-stable. This somewhat confusing situation can arise when we want a function to be indirectly const-exposed on stable (e.g., it is called by other, fully stable const functions).

rustdoc renders this as
Image

Given that this is not actually const-callable on stable, maybe it should just not show anything here? As far as the public API is concerned, this function is no different from e.g. this one.

Cc @rust-lang/rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)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