Skip to content

Confusing display of 1.0.0 stability #90552

Description

@jsha

At https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html (same issue on stable), the "1.0.0" stability on the right-hand side is displayed inconsistently. It seems to show up only when there is also const stability to display. Example:

image

new shows stability of 1.0.0 (const: 1.39.0). with_capacity shows no stability information. But both have #[stable(feature = "rust1", since = "1.0.0")]:

https://doc.rust-lang.org/nightly/src/alloc/vec/mod.rs.html#424
https://doc.rust-lang.org/nightly/src/alloc/vec/mod.rs.html#469

Note: Hiding 1.0.0 stability for the stdlib may actually be the right thing to do, to reduce noise. But if that's the intent, we should do it consistently - for instance also hiding 1.0.0 in the <h1> at the top of the page.

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

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.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