Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: Clarify const-stability with regard to normal stability #125599

Merged
merged 2 commits into from
May 27, 2024

Commits on May 26, 2024

  1. rustdoc: Elide const-unstable if also unstable overall

    It's confusing because if a function is unstable overall, there's no
    need to highlight the constness is also unstable. Technically, these
    attributes (overall stability and const-stability) are separate, but in
    practice, we don't even show the const-unstable's feature flag (it's
    normally the same as the overall function).
    camelid committed May 26, 2024
    Configuration menu
    Copy the full SHA
    fa7a3f9 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. rustdoc: Show "const" for const-unstable if also overall unstable

    If a const function is unstable overall (and thus, in all circumstances
    I know of, also const-unstable), we should show the option to use it as
    const. You need to enable a feature to use the function at all anyway.
    
    If the function is stabilized without also being const-stabilized, then
    we do not show the const keyword and instead show "const: unstable" in
    the version info.
    camelid committed May 27, 2024
    Configuration menu
    Copy the full SHA
    699d28f View commit details
    Browse the repository at this point in the history